// ag-grid-enterprise v13.2.0
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.agGrid=t():e.agGrid=t()}(this,function(){return function(e){function t(i){if(o[i])return o[i].exports;var n=o[i]={exports:{},id:i,loaded:!1};return e[i].call(n.exports,n,n.exports,t),n.loaded=!0,n.exports}var o={};return t.m=e,t.c=o,t.p="",t(0)}([function(e,t,o){o(1),(0,o(178).populateClientExports)(t);var i=o(2);Object.keys(i).forEach(function(e){t[e]=i[e]})},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(2),n=o(137),r=o(145),s=o(144),a=o(147),l=o(148),p=o(151),u=o(160),c=o(162),d=o(163),h=o(164),f=o(167),g=o(171),y=o(158),v=o(159),m=o(149),C=o(150),E=o(146),w=o(172),R=o(143),_=o(173),O=o(174),A=o(175),S={viewport:d.ViewportRowModel,enterprise:A.EnterpriseRowModel};i.Grid.setEnterpriseBeans([f.ToolPanelComp,n.EnterpriseMenuFactory,_.ExcelCreator,O.ExcelXmlFactory,g.RowGroupCompFactory,w.PivotCompFactory,h.PivotColumnsPanel,r.RangeController,s.ClipboardService,m.PivotStage,C.PivotColDefService,c.ContextMenuFactory,a.GroupStage,l.AggregationStage,p.EnterpriseBoot,E.AggFuncService,u.StatusBar,y.LicenseManager,v.MD5,R.MenuItemMapper],S)},function(e,t,o){(function(e){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=void 0===e?{}:e;i.HTMLElement="undefined"==typeof HTMLElement?{}:HTMLElement,i.HTMLButtonElement="undefined"==typeof HTMLButtonElement?{}:HTMLButtonElement,i.HTMLSelectElement="undefined"==typeof HTMLSelectElement?{}:HTMLSelectElement,i.HTMLInputElement="undefined"==typeof HTMLInputElement?{}:HTMLInputElement,i.Node="undefined"==typeof Node?{}:Node;var n=o(3);t.BalancedColumnTreeBuilder=n.BalancedColumnTreeBuilder;var r=o(15);t.ColumnController=r.ColumnController;var s=o(109);t.ColumnKeyCreator=s.ColumnKeyCreator;var a=o(18);t.ColumnUtils=a.ColumnUtils;var l=o(21);t.DisplayedGroupCreator=l.DisplayedGroupCreator;var p=o(104);t.GroupInstanceIdCreator=p.GroupInstanceIdCreator;var u=o(10);t.ComponentUtil=u.ComponentUtil;var c=o(110);t.initialiseAgGridWithAngular1=c.initialiseAgGridWithAngular1;var d=o(131);t.initialiseAgGridWithWebComponents=d.initialiseAgGridWithWebComponents;var h=o(36);t.BeanStub=h.BeanStub;var f=o(7);t.Context=f.Context,t.Autowired=f.Autowired,t.PostConstruct=f.PostConstruct,t.PreConstruct=f.PreConstruct,t.Optional=f.Optional,t.Bean=f.Bean,t.Qualifier=f.Qualifier,t.PreDestroy=f.PreDestroy;var g=o(48);t.QuerySelector=g.QuerySelector,t.Listener=g.Listener,t.RefSelector=g.RefSelector;var y=o(90);t.DragAndDropService=y.DragAndDropService,t.DragSourceType=y.DragSourceType,t.HDirection=y.HDirection,t.VDirection=y.VDirection;var v=o(26);t.DragService=v.DragService;var m=o(17);t.Column=m.Column;var C=o(16);t.ColumnGroup=C.ColumnGroup;var E=o(33);t.GridCell=E.GridCell;var w=o(34);t.GridRow=w.GridRow;var R=o(19);t.OriginalColumnGroup=R.OriginalColumnGroup;var _=o(30);t.RowNode=_.RowNode;var O=o(54);t.BaseFilter=O.BaseFilter;var A=o(56);t.DateFilter=A.DateFilter;var S=o(51);t.FilterManager=S.FilterManager;var b=o(55);t.NumberFilter=b.NumberFilter;var P=o(53);t.TextFilter=P.TextFilter;var D=o(24);t.GridPanel=D.GridPanel;var T=o(39);t.ScrollVisibleService=T.ScrollVisibleService;var N=o(28);t.MouseEventService=N.MouseEventService;var F=o(103);t.BodyDropPivotTarget=F.BodyDropPivotTarget;var L=o(101);t.BodyDropTarget=L.BodyDropTarget;var x=o(96);t.CssClassApplier=x.CssClassApplier;var G=o(89);t.HeaderContainer=G.HeaderContainer;var I=o(88);t.HeaderRenderer=I.HeaderRenderer;var M=o(92);t.HeaderRowComp=M.HeaderRowComp;var W=o(94);t.HeaderTemplateLoader=W.HeaderTemplateLoader;var V=o(95);t.HorizontalDragService=V.HorizontalDragService;var H=o(102);t.MoveColumnController=H.MoveColumnController;var U=o(93);t.RenderedHeaderCell=U.RenderedHeaderCell;var B=o(112);t.StandardMenuFactory=B.StandardMenuFactory;var k=o(25);t.BorderLayout=k.BorderLayout;var j=o(132);t.TabbedLayout=j.TabbedLayout;var z=o(133);t.VerticalStack=z.VerticalStack;var Y=o(134);t.simpleHttpRequest=Y.simpleHttpRequest;var K=o(76);t.LargeTextCellEditor=K.LargeTextCellEditor;var q=o(42);t.PopupEditorWrapper=q.PopupEditorWrapper;var Q=o(75);t.PopupSelectCellEditor=Q.PopupSelectCellEditor;var X=o(74);t.PopupTextCellEditor=X.PopupTextCellEditor;var $=o(72);t.SelectCellEditor=$.SelectCellEditor;var Z=o(71);t.TextCellEditor=Z.TextCellEditor;var J=o(79);t.AnimateShowChangeCellRenderer=J.AnimateShowChangeCellRenderer;var ee=o(78);t.AnimateSlideCellRenderer=ee.AnimateSlideCellRenderer;var te=o(80);t.GroupCellRenderer=te.GroupCellRenderer;var oe=o(67);t.SetLeftFeature=oe.SetLeftFeature;var ie=o(22);t.AutoWidthCalculator=ie.AutoWidthCalculator;var ne=o(70);t.CellEditorFactory=ne.CellEditorFactory;var re=o(77);t.CellRendererFactory=re.CellRendererFactory;var se=o(81);t.CellRendererService=se.CellRendererService;var ae=o(37);t.CheckboxSelectionComponent=ae.CheckboxSelectionComponent;var le=o(29);t.CellComp=le.CellComp;var pe=o(47);t.RowComp=pe.RowComp;var ue=o(23);t.RowRenderer=ue.RowRenderer;var ce=o(73);t.ValueFormatterService=ce.ValueFormatterService;var de=o(113);t.FilterStage=de.FilterStage;var he=o(117);t.FlattenStage=he.FlattenStage;var fe=o(115);t.SortStage=fe.SortStage;var ge=o(44);t.PinnedRowModel=ge.PinnedRowModel;var ye=o(124);t.InMemoryRowModel=ye.InMemoryRowModel;var ve=o(126);t.ChangedPath=ve.ChangedPath;var me=o(125);t.InMemoryNodeManager=me.InMemoryNodeManager;var Ce=o(118);t.InfiniteRowModel=Ce.InfiniteRowModel;var Ee=o(121);t.RowNodeBlock=Ee.RowNodeBlock;var we=o(123);t.RowNodeBlockLoader=we.RowNodeBlockLoader;var Re=o(122);t.RowNodeCache=Re.RowNodeCache;var _e=o(82);t.StylingService=_e.StylingService;var Oe=o(98);t.AgCheckbox=Oe.AgCheckbox;var Ae=o(35);t.Component=Ae.Component;var Se=o(52);t.PopupService=Se.PopupService;var be=o(63);t.TouchListener=be.TouchListener;var Pe=o(127);t.BaseFrameworkFactory=Pe.BaseFrameworkFactory;var De=o(87);t.CellNavigationService=De.CellNavigationService;var Te=o(43);t.AlignedGridsService=Te.AlignedGridsService;var Ne=o(9);t.Constants=Ne.Constants;var Fe=o(13);t.CsvCreator=Fe.CsvCreator,t.BaseCreator=Fe.BaseCreator;var Le=o(106);t.Downloader=Le.Downloader;var xe=o(111);t.Grid=xe.Grid;var Ge=o(12);t.GridApi=Ge.GridApi;var Ie=o(11);t.Events=Ie.Events;var Me=o(38);t.FocusedCellController=Me.FocusedCellController;var We=o(135);t.defaultGroupComparator=We.defaultGroupComparator;var Ve=o(4);t.GridOptionsWrapper=Ve.GridOptionsWrapper;var He=o(5);t.EventService=He.EventService;var Ue=o(50);t.GridCore=Ue.GridCore;var Be=o(6);t.Logger=Be.Logger;var ke=o(27);t.SelectionController=ke.SelectionController;var je=o(62);t.SortController=je.SortController;var ze=o(49);t.TemplateService=ze.TemplateService;var Ye=o(8);t.Utils=Ye.Utils,t.NumberSequence=Ye.NumberSequence,t._=Ye._;var Ke=o(31);t.ValueService=Ke.ValueService;var qe=o(20);t.ExpressionService=qe.ExpressionService;var Qe=o(128);t.XmlFactory=Qe.XmlFactory;var Xe=o(14);t.GridSerializer=Xe.GridSerializer,t.BaseGridSerializingSession=Xe.BaseGridSerializingSession,t.RowType=Xe.RowType;var $e=o(6);t.LoggerFactory=$e.LoggerFactory;var Ze=o(15);t.ColumnApi=Ze.ColumnApi;var Je=o(136);t.BaseComponentWrapper=Je.BaseComponentWrapper;var et=o(91);t.Environment=et.Environment}).call(t,function(){return this}())},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(o,i){t(o,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(4),a=o(6),l=o(18),p=o(109),u=o(19),c=o(17),d=o(7),h=o(8),f=function(){function e(){}return e.prototype.setBeans=function(e){this.logger=e.create("BalancedColumnTreeBuilder")},e.prototype.createBalancedColumnGroups=function(e,t){var o=new p.ColumnKeyCreator,i=this.recursivelyCreateColumns(e,0,o,t),n=this.findMaxDept(i,0);this.logger.log("Number of levels for grouped columns is "+n);var r=this.balanceColumnTree(i,0,n,o);return this.columnUtils.depthFirstOriginalTreeSearch(r,function(e){e instanceof u.OriginalColumnGroup&&e.setupExpandable()}),{balancedTree:r,treeDept:n}},e.prototype.balanceColumnTree=function(e,t,o,i){var n=this,r=[];return e.forEach(function(e){if(e instanceof u.OriginalColumnGroup){var s=e,a=n.balanceColumnTree(s.getChildren(),t+1,o,i);s.setChildren(a),r.push(s)}else{for(var l=e,p=o-1;p>=t;p--){var c=i.getUniqueKey(null,null),d=n.createMergedColGroupDef(null),h=new u.OriginalColumnGroup(d,c,!0);n.context.wireBean(h),h.setChildren([l]),l=h}r.push(l)}}),r},e.prototype.findMaxDept=function(e,t){for(var o=t,i=0;i<e.length;i++){var n=e[i];if(n instanceof u.OriginalColumnGroup){var r=n,s=this.findMaxDept(r.getChildren(),t+1);o<s&&(o=s)}}return o},e.prototype.recursivelyCreateColumns=function(e,t,o,i){var n=this,r=[];return e?(e.forEach(function(e){var s;s=n.isColumnGroup(e)?n.createColumnGroup(o,i,e,t):n.createColumn(o,i,e),r.push(s)}),r):r},e.prototype.createColumnGroup=function(e,t,o,i){var n=this.createMergedColGroupDef(o),r=e.getUniqueKey(n.groupId,null),s=new u.OriginalColumnGroup(n,r,!1);this.context.wireBean(s);var a=this.recursivelyCreateColumns(n.children,i+1,e,t);return s.setChildren(a),s},e.prototype.createMergedColGroupDef=function(e){var t={};return h.Utils.assign(t,this.gridOptionsWrapper.getDefaultColGroupDef()),h.Utils.assign(t,e),this.checkForDeprecatedItems(t),t},e.prototype.createColumn=function(e,t,o){var i={};h.Utils.assign(i,this.gridOptionsWrapper.getDefaultColDef()),o.type&&this.assignColumnTypes(o,i),h.Utils.assign(i,o),this.checkForDeprecatedItems(i);var n=e.getUniqueKey(i.colId,i.field),r=new c.Column(i,n,t);return this.context.wireBean(r),r},e.prototype.assignColumnTypes=function(e,t){var o,i=this;if(e.type instanceof Array){e.type.some(function(e){return"string"!=typeof e})?console.warn("ag-grid: if colDef.type is supplied an array it should be of type 'string[]'"):o=e.type}else{if("string"!=typeof e.type)return void console.warn("ag-grid: colDef.type should be of type 'string' | 'string[]'");o=e.type.split(",")}o.forEach(function(e){var o=i.gridOptionsWrapper.getColumnTypes()[e.trim()];o?h.Utils.assign(t,o):console.warn("ag-grid: colDef.type '"+e+"' does not correspond to defined gridOptions.columnTypes")})},e.prototype.checkForDeprecatedItems=function(e){if(e){var t=e;void 0!==t.group&&console.warn("ag-grid: colDef.group is invalid, please check documentation on how to do grouping as it changed in version 3"),void 0!==t.headerGroup&&console.warn("ag-grid: colDef.headerGroup is invalid, please check documentation on how to do grouping as it changed in version 3"),void 0!==t.headerGroupShow&&console.warn("ag-grid: colDef.headerGroupShow is invalid, should be columnGroupShow, please check documentation on how to do grouping as it changed in version 3"),void 0!==t.suppressRowGroup&&console.warn("ag-grid: colDef.suppressRowGroup is deprecated, please use colDef.type instead"),void 0!==t.suppressAggregation&&console.warn("ag-grid: colDef.suppressAggregation is deprecated, please use colDef.type instead"),(t.suppressRowGroup||t.suppressAggregation)&&console.warn("ag-grid: colDef.suppressAggregation and colDef.suppressRowGroup are deprecated, use allowRowGroup, allowPivot and allowValue instead"),t.displayName&&(console.warn("ag-grid: Found displayName "+t.displayName+", please use headerName instead, displayName is deprecated."),t.headerName=t.displayName)}},e.prototype.isColumnGroup=function(e){return void 0!==e.children},i([d.Autowired("gridOptionsWrapper"),n("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([d.Autowired("columnUtils"),n("design:type",l.ColumnUtils)],e.prototype,"columnUtils",void 0),i([d.Autowired("context"),n("design:type",d.Context)],e.prototype,"context",void 0),i([r(0,d.Qualifier("loggerFactory")),n("design:type",Function),n("design:paramtypes",[a.LoggerFactory]),n("design:returntype",void 0)],e.prototype,"setBeans",null),e=i([d.Bean("balancedColumnTreeBuilder")],e)}();t.BalancedColumnTreeBuilder=f},function(e,t,o){"use strict";function i(e){return!0===e||"true"===e}function n(e,t){return e>=0?e:t}function r(e,t){return e>0?e:t}var s=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=this&&this.__param||function(e,t){return function(o,i){t(o,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var p=o(5),u=o(9),c=o(10),d=o(12),h=o(7),f=o(15),g=o(8),y=o(108),v=o(91),m=25,C=5,E=5,w=function(){function e(){this.propertyEventService=new p.EventService,this.domDataKey="__AG_"+Math.random().toString()}return t=e,e.prototype.agWire=function(e,t){this.gridOptions.api=e,this.gridOptions.columnApi=t,this.checkForDeprecated()},e.prototype.destroy=function(){this.gridOptions.api=null,this.gridOptions.columnApi=null},e.prototype.init=function(){var e=this.useAsyncEvents();this.eventService.addGlobalListener(this.globalEventHandler.bind(this),e),this.isGroupSelectsChildren()&&this.isSuppressParentsInRowNodes()&&console.warn("ag-Grid: groupSelectsChildren does not work wth suppressParentsInRowNodes, this selection method needs the part in rowNode to work"),this.isGroupSelectsChildren()&&(this.isRowSelectionMulti()||console.warn("ag-Grid: rowSelectionMulti must be true for groupSelectsChildren to make sense"),this.isRowModelEnterprise()&&console.warn("ag-Grid: group selects children is NOT support for Enterprise Row Model. This is because the rows are lazy loaded, so selecting a group is not possible asthe grid has no way of knowing what the children are.")),this.isGroupRemoveSingleChildren()&&this.isGroupHideOpenParents()&&console.warn("ag-Grid: groupRemoveSingleChildren and groupHideOpenParents do not work with each other, you need to pick one. And don't ask us how to us these together on our support forum either you will get the same answer!")},e.prototype.getDomData=function(e,t){var o=e[this.domDataKey];return o?o[t]:void 0},e.prototype.setDomData=function(e,t,o){var i=e[this.domDataKey];g.Utils.missing(i)&&(i={},e[this.domDataKey]=i),i[t]=o},e.prototype.isEnterprise=function(){return this.enterprise},e.prototype.isRowSelection=function(){return"single"===this.gridOptions.rowSelection||"multiple"===this.gridOptions.rowSelection},e.prototype.isRowDeselection=function(){return i(this.gridOptions.rowDeselection)},e.prototype.isRowSelectionMulti=function(){return"multiple"===this.gridOptions.rowSelection},e.prototype.getContext=function(){return this.gridOptions.context},e.prototype.isPivotMode=function(){return i(this.gridOptions.pivotMode)},e.prototype.isPivotTotals=function(){return i(this.gridOptions.pivotTotals)},e.prototype.isRowModelInfinite=function(){return this.gridOptions.rowModelType===u.Constants.ROW_MODEL_TYPE_INFINITE},e.prototype.isRowModelViewport=function(){return this.gridOptions.rowModelType===u.Constants.ROW_MODEL_TYPE_VIEWPORT},e.prototype.isRowModelEnterprise=function(){return this.gridOptions.rowModelType===u.Constants.ROW_MODEL_TYPE_ENTERPRISE},e.prototype.isRowModelDefault=function(){return g.Utils.missing(this.gridOptions.rowModelType)||this.gridOptions.rowModelType===u.Constants.ROW_MODEL_TYPE_IN_MEMORY||this.gridOptions.rowModelType===u.Constants.DEPRECATED_ROW_MODEL_TYPE_NORMAL},e.prototype.isFullRowEdit=function(){return"fullRow"===this.gridOptions.editType},e.prototype.isSuppressFocusAfterRefresh=function(){return i(this.gridOptions.suppressFocusAfterRefresh)},e.prototype.isShowToolPanel=function(){return i(this.gridOptions.showToolPanel)},e.prototype.isToolPanelSuppressRowGroups=function(){return i(this.gridOptions.toolPanelSuppressRowGroups)},e.prototype.isToolPanelSuppressValues=function(){return i(this.gridOptions.toolPanelSuppressValues)},e.prototype.isToolPanelSuppressPivots=function(){return i(this.gridOptions.toolPanelSuppressPivots)},e.prototype.isToolPanelSuppressPivotMode=function(){return i(this.gridOptions.toolPanelSuppressPivotMode)},e.prototype.isSuppressTouch=function(){return i(this.gridOptions.suppressTouch)},e.prototype.useAsyncEvents=function(){return!i(this.gridOptions.suppressAsyncEvents)},e.prototype.isEnableCellChangeFlash=function(){return i(this.gridOptions.enableCellChangeFlash)},e.prototype.isGroupSelectsChildren=function(){return i(this.gridOptions.groupSelectsChildren)},e.prototype.isGroupSelectsFiltered=function(){return i(this.gridOptions.groupSelectsFiltered)},e.prototype.isGroupHideOpenParents=function(){return i(this.gridOptions.groupHideOpenParents)},e.prototype.isGroupMultiAutoColumn=function(){return i(this.gridOptions.groupMultiAutoColumn)||i(this.gridOptions.groupHideOpenParents)},e.prototype.isGroupRemoveSingleChildren=function(){return i(this.gridOptions.groupRemoveSingleChildren)},e.prototype.isGroupIncludeFooter=function(){return i(this.gridOptions.groupIncludeFooter)},e.prototype.isGroupSuppressBlankHeader=function(){return i(this.gridOptions.groupSuppressBlankHeader)},e.prototype.isSuppressRowClickSelection=function(){return i(this.gridOptions.suppressRowClickSelection)},e.prototype.isSuppressCellSelection=function(){return i(this.gridOptions.suppressCellSelection)},e.prototype.isSuppressMultiSort=function(){return i(this.gridOptions.suppressMultiSort)},e.prototype.isGroupSuppressAutoColumn=function(){return i(this.gridOptions.groupSuppressAutoColumn)},e.prototype.isSuppressDragLeaveHidesColumns=function(){return i(this.gridOptions.suppressDragLeaveHidesColumns)},e.prototype.isSuppressScrollOnNewData=function(){return i(this.gridOptions.suppressScrollOnNewData)},e.prototype.isForPrint=function(){return"forPrint"===this.gridOptions.domLayout},e.prototype.isAutoHeight=function(){return"autoHeight"===this.gridOptions.domLayout},e.prototype.isSuppressHorizontalScroll=function(){return i(this.gridOptions.suppressHorizontalScroll)},e.prototype.isSuppressLoadingOverlay=function(){return i(this.gridOptions.suppressLoadingOverlay)},e.prototype.isSuppressNoRowsOverlay=function(){return i(this.gridOptions.suppressNoRowsOverlay)},e.prototype.isSuppressFieldDotNotation=function(){return i(this.gridOptions.suppressFieldDotNotation)},e.prototype.getPinnedTopRowData=function(){return this.gridOptions.pinnedTopRowData},e.prototype.getPinnedBottomRowData=function(){return this.gridOptions.pinnedBottomRowData},e.prototype.isFunctionsPassive=function(){return i(this.gridOptions.functionsPassive)},e.prototype.isSuppressTabbing=function(){return i(this.gridOptions.suppressTabbing)},e.prototype.isSuppressChangeDetection=function(){return i(this.gridOptions.suppressChangeDetection)},e.prototype.isSuppressAnimationFrame=function(){return i(this.gridOptions.suppressAnimationFrame)},e.prototype.getQuickFilterText=function(){return this.gridOptions.quickFilterText},e.prototype.isCacheQuickFilter=function(){return i(this.gridOptions.cacheQuickFilter)},e.prototype.isUnSortIcon=function(){return i(this.gridOptions.unSortIcon)},e.prototype.isSuppressMenuHide=function(){return i(this.gridOptions.suppressMenuHide)},e.prototype.getRowStyle=function(){return this.gridOptions.rowStyle},e.prototype.getRowClass=function(){return this.gridOptions.rowClass},e.prototype.getRowStyleFunc=function(){return this.gridOptions.getRowStyle},e.prototype.getRowClassFunc=function(){return this.gridOptions.getRowClass},e.prototype.getPostProcessPopupFunc=function(){return this.gridOptions.postProcessPopup},e.prototype.getDoesDataFlowerFunc=function(){return this.gridOptions.doesDataFlower},e.prototype.getPaginationNumberFormatterFunc=function(){return this.gridOptions.paginationNumberFormatter},e.prototype.getChildCountFunc=function(){return this.gridOptions.getChildCount},e.prototype.getIsFullWidthCellFunc=function(){return this.gridOptions.isFullWidthCell},e.prototype.getFullWidthCellRendererParams=function(){return this.gridOptions.fullWidthCellRendererParams},e.prototype.isEmbedFullWidthRows=function(){return this.isAutoHeight()||i(this.gridOptions.embedFullWidthRows)},e.prototype.getBusinessKeyForNodeFunc=function(){return this.gridOptions.getBusinessKeyForNode},e.prototype.getHeaderCellRenderer=function(){return this.gridOptions.headerCellRenderer},e.prototype.getApi=function(){return this.gridOptions.api},e.prototype.getColumnApi=function(){return this.gridOptions.columnApi},e.prototype.isDeltaRowDataMode=function(){return i(this.gridOptions.deltaRowDataMode)},e.prototype.isEnsureDomOrder=function(){return i(this.gridOptions.ensureDomOrder)},e.prototype.isEnableColResize=function(){return i(this.gridOptions.enableColResize)},e.prototype.isSingleClickEdit=function(){return i(this.gridOptions.singleClickEdit)},e.prototype.isSuppressClickEdit=function(){return i(this.gridOptions.suppressClickEdit)},e.prototype.isStopEditingWhenGridLosesFocus=function(){return i(this.gridOptions.stopEditingWhenGridLosesFocus)},e.prototype.getGroupDefaultExpanded=function(){return this.gridOptions.groupDefaultExpanded},e.prototype.getAutoSizePadding=function(){return this.gridOptions.autoSizePadding},e.prototype.getMaxConcurrentDatasourceRequests=function(){return this.gridOptions.maxConcurrentDatasourceRequests},e.prototype.getMaxBlocksInCache=function(){return this.gridOptions.maxBlocksInCache},e.prototype.getCacheOverflowSize=function(){return this.gridOptions.cacheOverflowSize},e.prototype.getPaginationPageSize=function(){return this.gridOptions.paginationPageSize},e.prototype.getCacheBlockSize=function(){return this.gridOptions.cacheBlockSize},e.prototype.getInfiniteInitialRowCount=function(){return this.gridOptions.infiniteInitialRowCount},e.prototype.isPurgeClosedRowNodes=function(){return i(this.gridOptions.purgeClosedRowNodes)},e.prototype.isSuppressPaginationPanel=function(){return i(this.gridOptions.suppressPaginationPanel)},e.prototype.getRowData=function(){return this.gridOptions.rowData},e.prototype.isGroupUseEntireRow=function(){return i(this.gridOptions.groupUseEntireRow)},e.prototype.isEnableRtl=function(){return i(this.gridOptions.enableRtl)},e.prototype.getAutoGroupColumnDef=function(){return this.gridOptions.autoGroupColumnDef},e.prototype.isGroupSuppressRow=function(){return i(this.gridOptions.groupSuppressRow)},e.prototype.getRowGroupPanelShow=function(){return this.gridOptions.rowGroupPanelShow},e.prototype.getPivotPanelShow=function(){return this.gridOptions.pivotPanelShow},e.prototype.isAngularCompileRows=function(){return i(this.gridOptions.angularCompileRows)},e.prototype.isAngularCompileFilters=function(){return i(this.gridOptions.angularCompileFilters)},e.prototype.isAngularCompileHeaders=function(){return i(this.gridOptions.angularCompileHeaders)},e.prototype.isDebug=function(){return i(this.gridOptions.debug)},e.prototype.getColumnDefs=function(){return this.gridOptions.columnDefs},e.prototype.getColumnTypes=function(){return g.Utils.assign({},this.gridOptions.columnTypes,y.DefaultColumnTypes)},e.prototype.getDatasource=function(){return this.gridOptions.datasource},e.prototype.getViewportDatasource=function(){return this.gridOptions.viewportDatasource},e.prototype.getEnterpriseDatasource=function(){return this.gridOptions.enterpriseDatasource},e.prototype.isEnableSorting=function(){return i(this.gridOptions.enableSorting)||i(this.gridOptions.enableServerSideSorting)},e.prototype.isAccentedSort=function(){return i(this.gridOptions.accentedSort)},e.prototype.isEnableCellExpressions=function(){return i(this.gridOptions.enableCellExpressions)},e.prototype.isEnableGroupEdit=function(){return i(this.gridOptions.enableGroupEdit)},e.prototype.isSuppressMiddleClickScrolls=function(){return i(this.gridOptions.suppressMiddleClickScrolls)},e.prototype.isSuppressPreventDefaultOnMouseWheel=function(){return i(this.gridOptions.suppressPreventDefaultOnMouseWheel)},e.prototype.isSuppressColumnVirtualisation=function(){return i(this.gridOptions.suppressColumnVirtualisation)},e.prototype.isSuppressContextMenu=function(){return i(this.gridOptions.suppressContextMenu)},e.prototype.isAllowContextMenuWithControlKey=function(){return i(this.gridOptions.allowContextMenuWithControlKey)},e.prototype.isSuppressCopyRowsToClipboard=function(){return i(this.gridOptions.suppressCopyRowsToClipboard)},e.prototype.isEnableFilter=function(){return i(this.gridOptions.enableFilter)||i(this.gridOptions.enableServerSideFilter)},e.prototype.isPagination=function(){return i(this.gridOptions.pagination)},e.prototype.isEnableServerSideFilter=function(){return this.gridOptions.enableServerSideFilter},e.prototype.isEnableServerSideSorting=function(){return i(this.gridOptions.enableServerSideSorting)},e.prototype.isSuppressMovableColumns=function(){return i(this.gridOptions.suppressMovableColumns)},e.prototype.isAnimateRows=function(){return!this.isEnsureDomOrder()&&i(this.gridOptions.animateRows)},e.prototype.isSuppressColumnMoveAnimation=function(){return i(this.gridOptions.suppressColumnMoveAnimation)},e.prototype.isSuppressAggFuncInHeader=function(){return i(this.gridOptions.suppressAggFuncInHeader)},e.prototype.isSuppressAggAtRootLevel=function(){return i(this.gridOptions.suppressAggAtRootLevel)},e.prototype.isEnableRangeSelection=function(){return i(this.gridOptions.enableRangeSelection)},e.prototype.isPaginationAutoPageSize=function(){return i(this.gridOptions.paginationAutoPageSize)},e.prototype.isRememberGroupStateWhenNewData=function(){return i(this.gridOptions.rememberGroupStateWhenNewData)},e.prototype.getIcons=function(){return this.gridOptions.icons},e.prototype.getAggFuncs=function(){return this.gridOptions.aggFuncs},e.prototype.getSortingOrder=function(){return this.gridOptions.sortingOrder},e.prototype.getAlignedGrids=function(){return this.gridOptions.alignedGrids},e.prototype.getGroupRowRendererParams=function(){return this.gridOptions.groupRowRendererParams},e.prototype.getOverlayLoadingTemplate=function(){return this.gridOptions.overlayLoadingTemplate},e.prototype.getOverlayNoRowsTemplate=function(){return this.gridOptions.overlayNoRowsTemplate},e.prototype.isSuppressAutoSize=function(){return i(this.gridOptions.suppressAutoSize)},e.prototype.isSuppressParentsInRowNodes=function(){return i(this.gridOptions.suppressParentsInRowNodes)},e.prototype.isEnableStatusBar=function(){return i(this.gridOptions.enableStatusBar)},e.prototype.isAlwaysShowStatusBar=function(){return i(this.gridOptions.alwaysShowStatusBar)},e.prototype.isFunctionsReadOnly=function(){return i(this.gridOptions.functionsReadOnly)},e.prototype.isFloatingFilter=function(){return this.gridOptions.floatingFilter},e.prototype.getDefaultColDef=function(){return this.gridOptions.defaultColDef},e.prototype.getDefaultColGroupDef=function(){return this.gridOptions.defaultColGroupDef},e.prototype.getDefaultExportParams=function(){return this.gridOptions.defaultExportParams},e.prototype.isSuppressCsvExport=function(){return i(this.gridOptions.suppressCsvExport)},e.prototype.isSuppressExcelExport=function(){return i(this.gridOptions.suppressExcelExport)},e.prototype.getHeaderCellTemplate=function(){return this.gridOptions.headerCellTemplate},e.prototype.getHeaderCellTemplateFunc=function(){return this.gridOptions.getHeaderCellTemplate},e.prototype.getNodeChildDetailsFunc=function(){return this.gridOptions.getNodeChildDetails},e.prototype.getGroupRowAggNodesFunc=function(){return this.gridOptions.groupRowAggNodes},e.prototype.getContextMenuItemsFunc=function(){return this.gridOptions.getContextMenuItems},e.prototype.getMainMenuItemsFunc=function(){return this.gridOptions.getMainMenuItems},e.prototype.getRowNodeIdFunc=function(){return this.gridOptions.getRowNodeId},e.prototype.getNavigateToNextCellFunc=function(){return this.gridOptions.navigateToNextCell},e.prototype.getTabToNextCellFunc=function(){return this.gridOptions.tabToNextCell},e.prototype.isValueCache=function(){return i(this.gridOptions.valueCache)},e.prototype.isValueCacheNeverExpires=function(){return i(this.gridOptions.valueCacheNeverExpires)},e.prototype.isAggregateOnlyChangedColumns=function(){return i(this.gridOptions.aggregateOnlyChangedColumns)},e.prototype.getProcessSecondaryColDefFunc=function(){return this.gridOptions.processSecondaryColDef},e.prototype.getProcessSecondaryColGroupDefFunc=function(){return this.gridOptions.processSecondaryColGroupDef},e.prototype.getSendToClipboardFunc=function(){return this.gridOptions.sendToClipboard},e.prototype.getProcessRowPostCreateFunc=function(){return this.gridOptions.processRowPostCreate},e.prototype.getProcessCellForClipboardFunc=function(){return this.gridOptions.processCellForClipboard},e.prototype.getProcessCellFromClipboardFunc=function(){return this.gridOptions.processCellFromClipboard},e.prototype.getViewportRowModelPageSize=function(){return r(this.gridOptions.viewportRowModelPageSize,C)},e.prototype.getViewportRowModelBufferSize=function(){return n(this.gridOptions.viewportRowModelBufferSize,E)},e.prototype.getClipboardDeliminator=function(){return g.Utils.exists(this.gridOptions.clipboardDeliminator)?this.gridOptions.clipboardDeliminator:"\t"},e.prototype.setProperty=function(e,t){var o=this.gridOptions,i=o[e];if(i!==t){o[e]=t;var n={type:e,currentValue:t,previousValue:i};this.propertyEventService.dispatchEvent(n)}},e.prototype.addEventListener=function(e,t){this.propertyEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.propertyEventService.removeEventListener(e,t)},e.prototype.getHeaderHeight=function(){return"number"==typeof this.gridOptions.headerHeight?this.gridOptions.headerHeight:this.specialForNewMaterial(25,56)},e.prototype.getFloatingFiltersHeight=function(){return"number"==typeof this.gridOptions.floatingFiltersHeight?this.gridOptions.floatingFiltersHeight:this.specialForNewMaterial(25,56)},e.prototype.getGroupPaddingSize=function(){return this.specialForNewMaterial(10,42)},e.prototype.getFooterPaddingAddition=function(){return this.specialForNewMaterial(15,32)},e.prototype.getLeafNodePaddingAddition=function(){return this.specialForNewMaterial(10,24)},e.prototype.getGroupHeaderHeight=function(){return"number"==typeof this.gridOptions.groupHeaderHeight?this.gridOptions.groupHeaderHeight:this.getHeaderHeight()},e.prototype.getPivotHeaderHeight=function(){return"number"==typeof this.gridOptions.pivotHeaderHeight?this.gridOptions.pivotHeaderHeight:this.getHeaderHeight()},e.prototype.getPivotGroupHeaderHeight=function(){return"number"==typeof this.gridOptions.pivotGroupHeaderHeight?this.gridOptions.pivotGroupHeaderHeight:this.getGroupHeaderHeight()},e.prototype.isExternalFilterPresent=function(){return"function"==typeof this.gridOptions.isExternalFilterPresent&&this.gridOptions.isExternalFilterPresent()},e.prototype.doesExternalFilterPass=function(e){return"function"==typeof this.gridOptions.doesExternalFilterPass&&this.gridOptions.doesExternalFilterPass(e)},e.prototype.getDocument=function(){var e;return g.Utils.exists(this.gridOptions.getDocument)&&(e=this.gridOptions.getDocument()),g.Utils.exists(e)?e:document},e.prototype.getLayoutInterval=function(){return"number"==typeof this.gridOptions.layoutInterval?this.gridOptions.layoutInterval:u.Constants.LAYOUT_INTERVAL},e.prototype.getMinColWidth=function(){return this.gridOptions.minColWidth>t.MIN_COL_WIDTH?this.gridOptions.minColWidth:t.MIN_COL_WIDTH},e.prototype.getMaxColWidth=function(){return this.gridOptions.maxColWidth>t.MIN_COL_WIDTH?this.gridOptions.maxColWidth:null},e.prototype.getColWidth=function(){return"number"!=typeof this.gridOptions.colWidth||this.gridOptions.colWidth<t.MIN_COL_WIDTH?200:this.gridOptions.colWidth},e.prototype.getRowBuffer=function(){return"number"==typeof this.gridOptions.rowBuffer?(this.gridOptions.rowBuffer<0&&console.warn("ag-Grid: rowBuffer should not be negative"),this.gridOptions.rowBuffer):u.Constants.ROW_BUFFER_SIZE},e.prototype.getScrollbarWidth=function(){var e=this.gridOptions.scrollbarWidth;return("number"!=typeof e||e<0)&&(e=g.Utils.getScrollbarWidth()),e},e.prototype.checkForDeprecated=function(){var e=this.gridOptions;e.suppressUnSort&&console.warn("ag-grid: as of v1.12.4 suppressUnSort is not used. Please use sortOrder instead."),e.suppressDescSort&&console.warn("ag-grid: as of v1.12.4 suppressDescSort is not used. Please use sortOrder instead."),e.groupAggFields&&console.warn("ag-grid: as of v3 groupAggFields is not used. Please add appropriate agg fields to your columns."),e.groupHidePivotColumns&&console.warn("ag-grid: as of v3 groupHidePivotColumns is not used as pivot columns are now called rowGroup columns. Please refer to the documentation"),e.groupKeys&&console.warn("ag-grid: as of v3 groupKeys is not used. You need to set rowGroupIndex on the columns to group. Please refer to the documentation"),"boolean"==typeof e.groupDefaultExpanded&&console.warn("ag-grid: groupDefaultExpanded can no longer be boolean. for groupDefaultExpanded=true, use groupDefaultExpanded=9999 instead, to expand all the groups"),(e.onRowDeselected||e.rowDeselected)&&console.warn("ag-grid: since version 3.4 event rowDeselected no longer exists, please check the docs"),e.rowsAlreadyGrouped&&console.warn("ag-grid: since version 3.4 rowsAlreadyGrouped no longer exists, please use getNodeChildDetails() instead"),e.groupAggFunction&&console.warn("ag-grid: since version 4.3.x groupAggFunction is now called groupRowAggNodes"),e.checkboxSelection&&console.warn("ag-grid: since version 8.0.x checkboxSelection is not supported as a grid option. If you want this on all columns, use defaultColDef instead and set it there"),e.paginationInitialRowCount&&console.warn("ag-grid: since version 9.0.x paginationInitialRowCount is now called infiniteInitialRowCount"),e.infinitePageSize&&console.warn("ag-grid: since version 9.0.x infinitePageSize is now called cacheBlockSize"),e.infiniteBlockSize&&console.warn("ag-grid: since version 10.0.x infiniteBlockSize is now called cacheBlockSize"),e.maxPagesInCache&&console.warn("ag-grid: since version 10.0.x maxPagesInCache is now called maxBlocksInCache"),e.paginationOverflowSize&&console.warn("ag-grid: since version 10.0.x paginationOverflowSize is now called cacheOverflowSize"),e.forPrint&&console.warn('ag-grid: since version 10.1.x, use property domLayout="forPrint" instead of forPrint=true'),e.suppressMenuFilterPanel&&console.warn("ag-grid: since version 11.0.x, use property colDef.menuTabs=['generalMenuTab','columnsMenuTab'] instead of suppressMenuFilterPanel=true"),e.suppressMenuMainPanel&&console.warn("ag-grid: since version 11.0.x, use property colDef.menuTabs=['filterMenuTab','columnsMenuTab'] instead of suppressMenuMainPanel=true"),e.suppressMenuColumnPanel&&console.warn("ag-grid: since version 11.0.x, use property colDef.menuTabs=['generalMenuTab','filterMenuTab'] instead of suppressMenuColumnPanel=true"),e.suppressUseColIdForGroups&&console.warn("ag-grid: since version 11.0.x, this is not in use anymore. You should be able to remove it from your definition"),e.groupColumnDef&&console.warn("ag-grid: since version 11.0.x, groupColumnDef has been renamed, this property is now called autoGroupColumnDef. Please change your configuration accordingly"),e.slaveGrids&&console.warn("ag-grid: since version 12.x, slaveGrids has been renamed, this property is now called alignedGrids. Please change your configuration accordingly"),e.floatingTopRowData&&console.warn("ag-grid: since version 12.x, floatingTopRowData is now called pinnedTopRowData"),e.floatingBottomRowData&&console.warn("ag-grid: since version 12.x, floatingBottomRowData is now called pinnedBottomRowData"),e.paginationStartPage&&console.warn("ag-grid: since version 12.x, paginationStartPage is gone, please call api.paginationGoToPage("+e.paginationStartPage+") instead.")},e.prototype.getLocaleTextFunc=function(){if(this.gridOptions.localeTextFunc)return this.gridOptions.localeTextFunc;var e=this;return function(t,o){var i=e.gridOptions.localeText;return i&&i[t]?i[t]:o}},e.prototype.globalEventHandler=function(e,t){var o=c.ComponentUtil.getCallbackForEvent(e);"function"==typeof this.gridOptions[o]&&this.gridOptions[o](t)},e.prototype.getRowHeightAsNumber=function(){var e=this.gridOptions.rowHeight;return g.Utils.missing(e)?this.getDefaultRowHeight():this.isNumeric(this.gridOptions.rowHeight)?this.gridOptions.rowHeight:(console.warn("ag-Grid row height must be a number if not using standard row model"),this.getDefaultRowHeight())},e.prototype.getRowHeightForNode=function(e){if("function"==typeof this.gridOptions.getRowHeight){var t={node:e,data:e.data,api:this.gridOptions.api,context:this.gridOptions.context};return this.gridOptions.getRowHeight(t)}return this.isNumeric(this.gridOptions.rowHeight)?this.gridOptions.rowHeight:this.getDefaultRowHeight()},e.prototype.isDynamicRowHeight=function(){return"function"==typeof this.gridOptions.getRowHeight},e.prototype.isNumeric=function(e){return!isNaN(e)&&"number"==typeof e},e.prototype.specialForNewMaterial=function(e,t){return"ag-theme-material"==this.environment.getTheme()?t:e},e.prototype.getDefaultRowHeight=function(){return this.specialForNewMaterial(m,48)},e.MIN_COL_WIDTH=10,e.PROP_HEADER_HEIGHT="headerHeight",e.PROP_GROUP_REMOVE_SINGLE_CHILDREN="groupRemoveSingleChildren",e.PROP_PIVOT_HEADER_HEIGHT="pivotHeaderHeight",e.PROP_GROUP_HEADER_HEIGHT="groupHeaderHeight",e.PROP_PIVOT_GROUP_HEADER_HEIGHT="pivotGroupHeaderHeight",e.PROP_FLOATING_FILTERS_HEIGHT="floatingFiltersHeight",s([h.Autowired("gridOptions"),a("design:type",Object)],e.prototype,"gridOptions",void 0),s([h.Autowired("columnController"),a("design:type",f.ColumnController)],e.prototype,"columnController",void 0),s([h.Autowired("eventService"),a("design:type",p.EventService)],e.prototype,"eventService",void 0),s([h.Autowired("enterprise"),a("design:type",Boolean)],e.prototype,"enterprise",void 0),s([h.Autowired("frameworkFactory"),a("design:type",Object)],e.prototype,"frameworkFactory",void 0),s([h.Autowired("gridApi"),a("design:type",d.GridApi)],e.prototype,"gridApi",void 0),s([h.Autowired("columnApi"),a("design:type",f.ColumnApi)],e.prototype,"columnApi",void 0),s([h.Autowired("environment"),a("design:type",v.Environment)],e.prototype,"environment",void 0),s([l(0,h.Qualifier("gridApi")),l(1,h.Qualifier("columnApi")),a("design:type",Function),a("design:paramtypes",[d.GridApi,f.ColumnApi]),a("design:returntype",void 0)],e.prototype,"agWire",null),s([h.PreDestroy,a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",void 0)],e.prototype,"destroy",null),s([h.PostConstruct,a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",void 0)],e.prototype,"init",null),e=t=s([h.Bean("gridOptionsWrapper")],e);var t}();t.GridOptionsWrapper=w},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(o,i){t(o,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(6),a=o(8),l=o(7),p=o(7),u=o(4),c=function(){function e(){this.allSyncListeners={},this.allAsyncListeners={},this.globalSyncListeners=[],this.globalAsyncListeners=[],this.asyncFunctionsQueue=[],this.scheduled=!1}return t=e,e.prototype.setBeans=function(e,t,o){if(void 0===o&&(o=null),this.logger=e.create("EventService"),o){var i=t.useAsyncEvents();this.addGlobalListener(o,i)}},e.prototype.getListenerList=function(e,t){var o=t?this.allAsyncListeners:this.allSyncListeners,i=o[e];return i||(i=[],o[e]=i),i},e.prototype.addEventListener=function(e,t,o){if(void 0===o&&(o=!1),this.assertNotDeprecated(e)){var i=this.getListenerList(e,o);i.indexOf(t)<0&&i.push(t)}},e.prototype.assertNotDeprecated=function(e){return"floatingRowDataChanged"!==e||(console.warn("ag-Grid: floatingRowDataChanged is now called pinnedRowDataChanged"),!1)},e.prototype.addModalPriorityEventListener=function(e,o,i){void 0===i&&(i=!1),this.assertNotDeprecated(e)&&this.addEventListener(e+t.PRIORITY,o,i)},e.prototype.addGlobalListener=function(e,t){void 0===t&&(t=!1),t?this.globalAsyncListeners.push(e):this.globalSyncListeners.push(e)},e.prototype.removeEventListener=function(e,t,o){void 0===o&&(o=!1);var i=this.getListenerList(e,o);a.Utils.removeFromArray(i,t)},e.prototype.removeGlobalListener=function(e){a.Utils.removeFromArray(this.globalSyncListeners,e)},e.prototype.dispatchEvent=function(e){this.dispatchToListeners(e,!0),this.dispatchToListeners(e,!1)},e.prototype.dispatchToListeners=function(e,o){var i=this,n=o?this.globalAsyncListeners:this.globalSyncListeners,r=e.type,s=this.getListenerList(r+t.PRIORITY,o);a.Utils.forEachSnapshotFirst(s,function(t){o?i.dispatchAsync(function(){return t(e)}):t(e)});var l=this.getListenerList(r,o);a.Utils.forEachSnapshotFirst(l,function(t){o?i.dispatchAsync(function(){return t(e)}):t(e)}),a.Utils.forEachSnapshotFirst(n,function(t){o?i.dispatchAsync(function(){return t(r,e)}):t(r,e)})},e.prototype.dispatchAsync=function(e){this.asyncFunctionsQueue.push(e),this.scheduled||(setTimeout(this.flushAsyncQueue.bind(this),0),this.scheduled=!0)},e.prototype.flushAsyncQueue=function(){this.scheduled=!1;var e=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[],e.forEach(function(e){return e()})},e.PRIORITY="-P1",i([r(0,p.Qualifier("loggerFactory")),r(1,p.Qualifier("gridOptionsWrapper")),r(2,p.Qualifier("globalEventListener")),n("design:type",Function),n("design:paramtypes",[s.LoggerFactory,u.GridOptionsWrapper,Function]),n("design:returntype",void 0)],e.prototype,"setBeans",null),e=t=i([l.Bean("eventService")],e);var t}();t.EventService=c},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(o,i){t(o,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(4),a=o(7),l=o(7),p=function(){function e(){}return e.prototype.setBeans=function(e){this.logging=e.isDebug()},e.prototype.create=function(e){return new u(e,this.isLogging.bind(this))},e.prototype.isLogging=function(){return this.logging},i([r(0,l.Qualifier("gridOptionsWrapper")),n("design:type",Function),n("design:paramtypes",[s.GridOptionsWrapper]),n("design:returntype",void 0)],e.prototype,"setBeans",null),e=i([a.Bean("loggerFactory")],e)}();t.LoggerFactory=p;var u=function(){function e(e,t){this.name=e,this.isLoggingFunc=t}return e.prototype.isLogging=function(){return this.isLoggingFunc()},e.prototype.log=function(e){this.isLoggingFunc()&&console.log("ag-Grid."+this.name+": "+e)},e}();t.Logger=u},function(e,t,o){"use strict";function i(e,t){var o=[null].concat(t);return new(e.bind.apply(e,o))}function n(e,t,o){var i=d(e.constructor);i.postConstructMethods||(i.preConstructMethods=[]),i.preConstructMethods.push(t)}function r(e,t,o){var i=d(e.constructor);i.postConstructMethods||(i.postConstructMethods=[]),i.postConstructMethods.push(t)}function s(e,t,o){var i=d(e.constructor);i.preDestroyMethods||(i.preDestroyMethods=[]),i.preDestroyMethods.push(t)}function a(e){return function(t){d(t).beanName=e}}function l(e){return function(t,o,i){u(t,e,!1,t,o,null)}}function p(e){return function(t,o,i){u(t,e,!0,t,o,null)}}function u(e,t,o,i,n,r){if(null===t)return void console.error("ag-Grid: Autowired name should not be null");if("number"==typeof r)return void console.error("ag-Grid: Autowired should be on an attribute");var s=d(e.constructor);s.agClassAttributes||(s.agClassAttributes=[]),s.agClassAttributes.push({attributeName:n,beanName:t,optional:o})}function c(e){return function(t,o,i){var n,r="function"==typeof t?t:t.constructor;if("number"==typeof i){var s=void 0;o?(n=d(r),s=o):(n=d(r),s="agConstructor"),n.autowireMethods||(n.autowireMethods={}),n.autowireMethods[s]||(n.autowireMethods[s]={}),n.autowireMethods[s][i]=e}}}function d(e){return e.hasOwnProperty("__agBeanMetaData")||(e.__agBeanMetaData={}),e.__agBeanMetaData}Object.defineProperty(t,"__esModule",{value:!0});var h=o(8),f=function(){function e(e,t){if(this.beans={},this.componentsMappedByName={},this.destroyed=!1,e&&e.beans){this.contextParams=e,this.logger=t,this.logger.log(">> creating ag-Application Context"),this.setupComponents(),this.createBeans();var o=h.Utils.mapObject(this.beans,function(e){return e.beanInstance});this.wireBeans(o),this.logger.log(">> ag-Application Context ready - component is alive")}}return e.prototype.setupComponents=function(){var e=this;this.contextParams.components&&this.contextParams.components.forEach(function(t){return e.addComponent(t)})},e.prototype.addComponent=function(e){var t=e.componentName.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),o=t.toUpperCase();this.componentsMappedByName[o]=e.theClass},e.prototype.createComponent=function(e){var t=e.nodeName;if(this.componentsMappedByName&&this.componentsMappedByName[t]){var o=new this.componentsMappedByName[t];return this.wireBean(o),this.copyAttributesFromNode(e,o.getHtmlElement()),o.attributesSet(),o}return null},e.prototype.copyAttributesFromNode=function(e,t){if(e.attributes)for(var o=e.attributes.length,i=0;i<o;i++){var n=e.attributes[i];t.setAttribute(n.name,n.value)}},e.prototype.wireBean=function(e){if(!e)throw Error("Can't wire to bean since it is null");this.wireBeans([e])},e.prototype.wireBeans=function(e){this.autoWireBeans(e),this.methodWireBeans(e),this.preConstruct(e),this.postConstruct(e)},e.prototype.createBeans=function(){var e=this;this.contextParams.beans.forEach(this.createBeanEntry.bind(this)),this.contextParams.overrideBeans&&this.contextParams.overrideBeans.forEach(this.createBeanEntry.bind(this)),h.Utils.iterateObject(this.beans,function(t,o){var n;o.bean.__agBeanMetaData&&o.bean.__agBeanMetaData.autowireMethods&&o.bean.__agBeanMetaData.autowireMethods.agConstructor&&(n=o.bean.__agBeanMetaData.autowireMethods.agConstructor);var r=e.getBeansForParameters(n,o.bean.name),s=i(o.bean,r);o.beanInstance=s,e.logger.log("bean "+e.getBeanName(s)+" created")})},e.prototype.createBeanEntry=function(e){var t=e.__agBeanMetaData;if(!t){var o=void 0;return o=e.prototype.constructor?e.prototype.constructor.name:""+e,void console.error("context item "+o+" is not a bean")}var i={bean:e,beanInstance:null,beanName:t.beanName};this.beans[t.beanName]=i},e.prototype.autoWireBeans=function(e){var t=this;e.forEach(function(e){return t.autoWireBean(e)})},e.prototype.methodWireBeans=function(e){var t=this;e.forEach(function(e){if(!e)throw Error("Can't wire to bean since it is null");return t.methodWireBean(e)})},e.prototype.autoWireBean=function(e){for(var t=this,o=e,i=function(){var i=o.constructor;if(i.__agBeanMetaData&&i.__agBeanMetaData.agClassAttributes){var r=i.__agBeanMetaData.agClassAttributes;if(!r)return{value:void 0};var s=n.getBeanName(i);r.forEach(function(o){var i=t.lookupBeanInstance(s,o.beanName,o.optional);e[o.attributeName]=i})}o=Object.getPrototypeOf(o)?Object.getPrototypeOf(o):null},n=this;null!=o;){var r=i();if("object"==typeof r)return r.value}},e.prototype.getBeanName=function(e){if(e.__agBeanMetaData&&e.__agBeanMetaData.beanName)return e.__agBeanMetaData.beanName;var t=e.toString();return t.substring(9,t.indexOf("("))},e.prototype.methodWireBean=function(e){var t,o=this;e.constructor.__agBeanMetaData&&e.constructor.__agBeanMetaData.autowireMethods&&(t=e.constructor.__agBeanMetaData.autowireMethods),h.Utils.iterateObject(t,function(t,i){if("agConstructor"!==t){var n=o.getBeanName(e.constructor),r=o.getBeansForParameters(i,n);e[t].apply(e,r)}})},e.prototype.getBeansForParameters=function(e,t){var o=this,i=[];return e&&h.Utils.iterateObject(e,function(e,n){var r=o.lookupBeanInstance(t,n);i[Number(e)]=r}),i},e.prototype.lookupBeanInstance=function(e,t,o){if(void 0===o&&(o=!1),"context"===t)return this;if(this.contextParams.seed&&this.contextParams.seed.hasOwnProperty(t))return this.contextParams.seed[t];var i=this.beans[t];return i?i.beanInstance:(o||console.error("ag-Grid: unable to find bean reference "+t+" while initialising "+e),null)},e.prototype.postConstruct=function(e){e.forEach(function(e){e.constructor.__agBeanMetaData&&e.constructor.__agBeanMetaData.postConstructMethods&&e.constructor.__agBeanMetaData&&e.constructor.__agBeanMetaData.postConstructMethods.forEach(function(t){return e[t]()})})},e.prototype.preConstruct=function(e){e.forEach(function(e){e.constructor.__agBeanMetaData&&e.constructor.__agBeanMetaData.preConstructMethods&&e.constructor.__agBeanMetaData.preConstructMethods.forEach(function(t){return e[t]()})})},e.prototype.getBean=function(e){return this.lookupBeanInstance("getBean",e,!0)},e.prototype.destroy=function(){this.destroyed||(this.logger.log(">> Shutting down ag-Application Context"),h.Utils.iterateObject(this.beans,function(e,t){var o=t.beanInstance;o.constructor.__agBeanMetaData&&o.constructor.__agBeanMetaData.preDestroyMethods&&o.constructor.__agBeanMetaData.preDestroyMethods.forEach(function(e){return o[e]()})}),this.destroyed=!0,this.logger.log(">> ag-Application Context shut down - component is dead"))},e}();t.Context=f,t.PreConstruct=n,t.PostConstruct=r,t.PreDestroy=s,t.Bean=a,t.Autowired=l,t.Optional=p,t.Qualifier=c},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,i=/([^\s,]+)/g,n=function(){function e(){this.timestamp=(new Date).getTime()}return e.prototype.print=function(e){var t=(new Date).getTime()-this.timestamp;console.log(e+" = "+t),this.timestamp=(new Date).getTime()},e}();t.Timer=n;var r={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},s=/[&<>"']/g,a=function(){function e(){}return e.areEventsNear=function(e,t,o){if(0===o)return!1;var i=Math.abs(e.clientX-t.clientX),n=Math.abs(e.clientY-t.clientY);return Math.max(i,n)<=o},e.shallowCompare=function(e,t){if(this.missing(e)&&this.missing(t))return!0;if(this.missing(e)||this.missing(t))return!1;if(e.length!==t.length)return!1;for(var o=0;o<e.length;o++)if(e[o]!==t[o])return!1;return!0},e.getNameOfClass=function(e){var t=/function (.{1,})\(/,o=e.toString(),i=t.exec(o);return i&&i.length>1?i[1]:""},e.values=function(e){var t=[];return this.iterateObject(e,function(e,o){t.push(o)}),t},e.getValueUsingField=function(e,t,o){if(t&&e){if(o){for(var i=t.split("."),n=e,r=0;r<i.length;r++)if(n=n[i[r]],this.missing(n))return null;return n}return e[t]}},e.getScrollLeft=function(e,t){var o=e.scrollLeft;return t&&(o=Math.abs(o),(this.isBrowserSafari()||this.isBrowserChrome())&&(o=e.scrollWidth-e.clientWidth-o)),o},e.cleanNumber=function(e){return"string"==typeof e&&(e=parseInt(e)),e="number"==typeof e?Math.floor(e):null},e.setScrollLeft=function(e,t,o){o&&((this.isBrowserSafari()||this.isBrowserChrome())&&(t=e.scrollWidth-e.clientWidth-t),this.isBrowserFirefox()&&(t*=-1)),e.scrollLeft=t},e.iterateObject=function(e,t){if(!this.missing(e))for(var o=Object.keys(e),i=0;i<o.length;i++){var n=o[i],r=e[n];t(n,r)}},e.cloneObject=function(e){for(var t={},o=Object.keys(e),i=0;i<o.length;i++){var n=o[i],r=e[n];t[n]=r}return t},e.map=function(e,t){for(var o=[],i=0;i<e.length;i++){var n=e[i],r=t(n);o.push(r)}return o},e.mapObject=function(t,o){var i=[];return e.iterateObject(t,function(e,t){i.push(o(t))}),i},e.forEach=function(e,t){if(e)for(var o=0;o<e.length;o++){var i=e[o];t(i,o)}},e.filter=function(e,t){var o=[];return e.forEach(function(e){t(e)&&o.push(e)}),o},e.getAllKeysInObjects=function(e){var t={};return e.forEach(function(e){e&&Object.keys(e).forEach(function(e){return t[e]=null})}),Object.keys(t)},e.mergeDeep=function(t,o){this.exists(o)&&this.iterateObject(o,function(o,i){var n=t[o];return null==n?void(t[o]=i):"object"==typeof n&&i?void e.mergeDeep(n,i):void(i&&(t[o]=i))})},e.assign=function(e){for(var t=this,o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return o.forEach(function(o){t.exists(o)&&t.iterateObject(o,function(t,o){e[t]=o})}),e},e.parseYyyyMmDdToDate=function(e,t){try{if(!e)return null;if(-1===e.indexOf(t))return null;var o=e.split(t);return 3!=o.length?null:new Date(Number(o[0]),Number(o[1])-1,Number(o[2]))}catch(e){return null}},e.serializeDateToYyyyMmDd=function(t,o){return t?t.getFullYear()+o+e.pad(t.getMonth()+1,2)+o+e.pad(t.getDate(),2):null},e.pad=function(e,t){for(var o=e+"";o.length<t;)o="0"+o;return o},e.pushAll=function(e,t){this.missing(t)||this.missing(e)||t.forEach(function(t){return e.push(t)})},e.createArrayOfNumbers=function(e,t){for(var o=[],i=e;i<=t;i++)o.push(i);return o},e.getFunctionParameters=function(e){var t=e.toString().replace(o,""),n=t.slice(t.indexOf("(")+1,t.indexOf(")")).match(i);return null===n?[]:n},e.find=function(e,t,o){if(null===e||void 0===e)return null;if(!Array.isArray(e)){var i=this.values(e);return this.find(i,t,o)}for(var n,r=e,s=0;s<r.length;s++){var a=r[s];if("string"==typeof t){if(a[t]===o){n=a;break}}else{if(t(a)){n=a;break}}}return n},e.toStrings=function(e){return this.map(e,function(e){return void 0!==e&&null!==e&&e.toString?e.toString():null})},e.iterateArray=function(e,t){for(var o=0;o<e.length;o++){t(e[o],o)}},e.isNode=function(e){return"function"==typeof Node?e instanceof Node:e&&"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},e.isElement=function(e){return"function"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName},e.isNodeOrElement=function(e){return this.isNode(e)||this.isElement(e)},e.isEventFromPrintableCharacter=function(o){var i=String.fromCharCode(o.charCode);return t._.exists(o.key)?1===o.key.length:e.PRINTABLE_CHARACTERS.indexOf(i)>=0},e.addChangeListener=function(e,t){e.addEventListener("changed",t),e.addEventListener("paste",t),e.addEventListener("input",t),e.addEventListener("keydown",t),e.addEventListener("keyup",t)},e.makeNull=function(e){return null===e||void 0===e||""===e?null:e},e.missing=function(e){return!this.exists(e)},e.missingOrEmpty=function(e){return this.missing(e)||0===e.length},e.missingOrEmptyObject=function(e){return this.missing(e)||0===Object.keys(e).length},e.exists=function(e){return null!==e&&void 0!==e&&""!==e},e.anyExists=function(e){if(e)for(var t=0;t<e.length;t++)if(this.exists(e[t]))return!0;return!1},e.existsAndNotEmpty=function(e){return this.exists(e)&&e.length>0},e.removeAllChildren=function(e){if(e)for(;e.hasChildNodes();)e.removeChild(e.lastChild)},e.removeElement=function(e,t){this.removeFromParent(e.querySelector(t))},e.removeFromParent=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},e.isVisible=function(e){return null!==e.offsetParent},e.loadTemplate=function(e){var t=document.createElement("div");return t.innerHTML=e,t.firstChild},e.assertHtmlElement=function(e){return"string"==typeof e?(console.error("ag-grid: Found a string template for a component type where only HTMLElements are allow. \n            Please change the component to return back an HTMLElement from getGui(). Only some element types can return back strings.\n            The found template is "+e),null):e},e.ensureElement=function(e){return"string"==typeof e?this.loadTemplate(e):e},e.appendHtml=function(e,t){e.lastChild?e.insertAdjacentHTML("afterbegin",t):e.innerHTML=t},e.addOrRemoveCssClass=function(e,t,o){o?this.addCssClass(e,t):this.removeCssClass(e,t)},e.callIfPresent=function(e){e&&e()},e.addCssClass=function(e,t){var o=this;if(t&&0!==t.length){if(t.indexOf(" ")>=0)return void t.split(" ").forEach(function(t){return o.addCssClass(e,t)});if(e.classList)e.classList.add(t);else if(e.className&&e.className.length>0){var i=e.className.split(" ");i.indexOf(t)<0&&(i.push(t),e.className=i.join(" "))}else e.className=t}},e.containsClass=function(e,t){if(e.classList)return e.classList.contains(t);if(e.className){var o=e.className===t,i=e.className.indexOf(" "+t+" ")>=0,n=0===e.className.indexOf(t+" "),r=e.className.lastIndexOf(" "+t)===e.className.length-t.length-1;return o||i||n||r}return!1},e.getElementAttribute=function(e,t){if(e.attributes){if(e.attributes[t]){return e.attributes[t].value}return null}return null},e.offsetHeight=function(e){return e&&e.clientHeight?e.clientHeight:0},e.offsetWidth=function(e){return e&&e.clientWidth?e.clientWidth:0},e.sortNumberArray=function(e){e.sort(function(e,t){return e-t})},e.removeCssClass=function(e,t){if(e.classList)e.classList.remove(t);else if(e.className&&e.className.length>0){var o=e.className.split(" ");if(o.indexOf(t)>=0){for(;o.indexOf(t)>=0;)o.splice(o.indexOf(t),1);e.className=o.join(" ")}}},e.removeRepeatsFromArray=function(e,t){if(e)for(var o=e.length-2;o>=0;o--){var i=e[o]===t,n=e[o+1]===t;i&&n&&e.splice(o+1,1)}},e.removeFromArray=function(e,t){e.indexOf(t)>=0&&e.splice(e.indexOf(t),1)},e.removeAllFromArray=function(e,t){t.forEach(function(t){e.indexOf(t)>=0&&e.splice(e.indexOf(t),1)})},e.insertIntoArray=function(e,t,o){e.splice(o,0,t)},e.insertArrayIntoArray=function(e,t,o){if(!this.missing(e)&&!this.missing(t))for(var i=t.length-1;i>=0;i--){var n=t[i];this.insertIntoArray(e,n,o)}},e.moveInArray=function(e,t,o){var i=this;t.forEach(function(t){i.removeFromArray(e,t)}),t.slice().reverse().forEach(function(t){i.insertIntoArray(e,t,o)})},e.defaultComparator=function(e,t,o){function i(e,t){return e>t?1:e<t?-1:0}void 0===o&&(o=!1);var n=null===e||void 0===e,r=null===t||void 0===t;if(e&&e.toNumber&&(e=e.toNumber()),t&&t.toNumber&&(t=t.toNumber()),n&&r)return 0;if(n)return-1;if(r)return 1;if("string"==typeof e){if(!o)return i(e,t);try{return e.localeCompare(t)}catch(o){return i(e,t)}}return e<t?-1:e>t?1:0},e.compareArrays=function(e,t){if(this.missing(e)&&this.missing(t))return!0;if(this.missing(e)||this.missing(t))return!1;if(e.length!==t.length)return!1;for(var o=0;o<e.length;o++)if(e[o]!==t[o])return!1;return!0},e.ensureDomOrder=function(e,t,o){o&&o.nextSibling===t||(o?o.nextSibling?e.insertBefore(t,o.nextSibling):e.appendChild(t):e.firstChild&&e.insertBefore(t,e.firstChild))},e.insertWithDomOrder=function(e,t,o){o?o.nextSibling?e.insertBefore(t,o.nextSibling):e.appendChild(t):e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)},e.insertTemplateWithDomOrder=function(e,t,o){var i;return o?(o.insertAdjacentHTML("afterend",t),i=o.nextSibling):(e.firstChild?e.insertAdjacentHTML("afterbegin",t):e.innerHTML=t,i=e.firstChild),i},e.toStringOrNull=function(e){return this.exists(e)&&e.toString?e.toString():null},e.formatWidth=function(e){return"number"==typeof e?e+"px":e},e.formatNumberTwoDecimalPlacesAndCommas=function(e){return"number"!=typeof e?"":(Math.round(100*e)/100).toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")},e.formatNumberCommas=function(e){return"number"!=typeof e?"":e.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")},e.prependDC=function(e,t){this.exists(e.firstChild)?e.insertBefore(t,e.firstChild):e.appendChild(t)},e.createIcon=function(e,t,o){var i=this.createIconNoSpan(e,t,o);if(i.className.indexOf("ag-icon")>-1)return i;var n=document.createElement("span");return n.appendChild(i),n},e.createIconNoSpan=function(e,t,o){var i;if(o&&o.getColDef().icons&&(i=o.getColDef().icons[e]),!i&&t.getIcons()&&(i=t.getIcons()[e]),i){var n=void 0;if("function"==typeof i)n=i();else{if("string"!=typeof i)throw"icon from grid options needs to be a string or a function";n=i}if("string"==typeof n)return this.loadTemplate(n);if(this.isNodeOrElement(n))return n;throw"iconRenderer should return back a string or a dom object"}var r=document.createElement("span"),s=this.iconNameClassMap[e];if(!s)throw new Error(e+" did not find class");return r.setAttribute("class","ag-icon ag-icon-"+s),r},e.addStylesToElement=function(e,t){var o=this;t&&Object.keys(t).forEach(function(i){var n=o.hyphenToCamelCase(i);e.style[n]=t[i]})},e.isHorizontalScrollShowing=function(e){return e.clientWidth<e.scrollWidth},e.isVerticalScrollShowing=function(e){return e.clientHeight<e.scrollHeight},e.getScrollbarWidth=function(){var e=document.createElement("div");e.style.visibility="hidden",e.style.width="100px",e.style.msOverflowStyle="scrollbar",document.body.appendChild(e);var t=e.offsetWidth;e.style.overflow="scroll";var o=document.createElement("div");o.style.width="100%",e.appendChild(o);var i=o.offsetWidth;return e.parentNode.removeChild(e),t-i},e.isKeyPressed=function(e,t){return(e.which||e.keyCode)===t},e.setVisible=function(e,t){this.addOrRemoveCssClass(e,"ag-hidden",!t)},e.setHidden=function(e,t){this.addOrRemoveCssClass(e,"ag-visibility-hidden",t)},e.isBrowserIE=function(){return void 0===this.isIE&&(this.isIE=!!document.documentMode),this.isIE},e.isBrowserEdge=function(){return void 0===this.isEdge&&(this.isEdge=!this.isBrowserIE()&&!!window.StyleMedia),this.isEdge},e.isBrowserSafari=function(){if(void 0===this.isSafari){var e=window;this.isSafari=Object.prototype.toString.call(e.HTMLElement).indexOf("Constructor")>0||function(e){return"[object SafariRemoteNotification]"===e.toString()}(!e.safari||e.safari.pushNotification)}return this.isSafari},e.isBrowserChrome=function(){if(void 0===this.isChrome){var e=window;this.isChrome=!!e.chrome&&!!e.chrome.webstore}return this.isChrome},e.isBrowserFirefox=function(){if(void 0===this.isFirefox){var e=window;this.isFirefox=void 0!==e.InstallTrigger}return this.isFirefox},e.getTarget=function(e){var t=e;return t.target||t.srcElement},e.forEachSnapshotFirst=function(e,t){if(e){e.slice(0).forEach(t)}},e.getBodyWidth=function(){return document.body?document.body.clientWidth:window.innerHeight?window.innerWidth:document.documentElement&&document.documentElement.clientWidth?document.documentElement.clientWidth:-1},e.getBodyHeight=function(){return document.body?document.body.clientHeight:window.innerHeight?window.innerHeight:document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:-1},e.setCheckboxState=function(e,t){"boolean"==typeof t?(e.checked=t,e.indeterminate=!1):e.indeterminate=!0},e.traverseNodesWithKey=function(e,t){function o(e){e.forEach(function(e){if(e.group){i.push(e.key);var n=i.join("|");t(e,n),o(e.childrenAfterGroup),i.pop()}})}var i=[];o(e)},e.camelCaseToHyphen=function(e){return null===e||void 0===e?null:e.replace(/([A-Z])/g,function(e){return"-"+e[0].toLowerCase()})},e.hyphenToCamelCase=function(e){return null===e||void 0===e?null:e.replace(/-([a-z])/g,function(e){return e[1].toUpperCase()})},e.cssStyleObjectToMarkup=function(e){var t=this;if(!e)return"";var o=[];return this.iterateObject(e,function(e,i){var n=t.camelCaseToHyphen(e);o.push(n+": "+i+";")}),o.join(" ")},e.isNumeric=function(e){return""!==e&&(!isNaN(parseFloat(e))&&isFinite(e))},e.escape=function(e){return null===e?null:e.replace?e.replace(s,function(e){return r[e]}):e},e.normalizeWheel=function(e){var t=10,o=40,i=800,n=0,r=0,s=0,a=0;return"detail"in e&&(r=e.detail),"wheelDelta"in e&&(r=-e.wheelDelta/120),"wheelDeltaY"in e&&(r=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(n=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(n=r,r=0),s=n*t,a=r*t,"deltaY"in e&&(a=e.deltaY),"deltaX"in e&&(s=e.deltaX),(s||a)&&e.deltaMode&&(1==e.deltaMode?(s*=o,a*=o):(s*=i,a*=i)),s&&!n&&(n=s<1?-1:1),a&&!r&&(r=a<1?-1:1),{spinX:n,spinY:r,pixelX:s,pixelY:a}},e.debounce=function(e,t,o){void 0===o&&(o=!1);var i;return function(){var n=this,r=arguments,s=o&&!i;clearTimeout(i),i=setTimeout(function(){i=null,o||e.apply(n,r)},t),s&&e.apply(n,r)}},e.executeInAWhile=function(e){this.executeAfter(e,400)},e.executeNextVMTurn=function(e){this.executeAfter(e,0)},e.executeAfter=function(e,t){e.length>0&&setTimeout(function(){e.forEach(function(e){return e()})},t)},e.referenceCompare=function(e,t){return null==e&&null==t||(null!=e||!t)&&((!e||null!=t)&&e===t)},e.get=function(t,o,i){if(null==t)return i;if(o.indexOf(".")>-1){var n=o.split("."),r=n[0],s=t[r];return null!=s?e.get(s,n.slice(1,n.length).join("."),i):i}var s=t[o];return null!=s?s:i},e.addSafePassiveEventListener=function(t,o,i){t.addEventListener(o,i,e.passiveEvents.indexOf(o)>-1?{passive:!0}:null)},e.camelCaseToHumanText=function(e){if(null==e)return null;var t=/([A-Z])([A-Z])([a-z])|([a-z])([A-Z])/g;return e.replace(t,"$1$4 $2$3$5").replace("."," ").split(" ").map(function(e){return e.substring(0,1).toUpperCase()+(e.length>1?e.substring(1,e.length):"")}).join(" ")},e.PRINTABLE_CHARACTERS="qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890!\"£$%^&*()_+-=[];'#,./|<>?:@~{}",e.iconNameClassMap={columnMovePin:"pin",columnMoveAdd:"plus",columnMoveHide:"eye-slash",columnMoveMove:"arrows",columnMoveLeft:"left",columnMoveRight:"right",columnMoveGroup:"group",columnMoveValue:"aggregation",columnMovePivot:"pivot",dropNotAllowed:"not-allowed",groupContracted:"expanded",groupExpanded:"contracted",checkboxChecked:"checkbox-checked",checkboxUnchecked:"checkbox-unchecked",checkboxIndeterminate:"checkbox-indeterminate",checkboxCheckedReadOnly:"checkbox-checked-readonly",checkboxUncheckedReadOnly:"checkbox-unchecked-readonly",checkboxIndeterminateReadOnly:"checkbox-indeterminate-readonly",groupLoading:"loading",menu:"menu",filter:"filter",columns:"columns",menuPin:"pin",menuValue:"aggregation",menuAddRowGroup:"group",menuRemoveRowGroup:"group",clipboardCopy:"copy",clipboardCut:"cut",clipboardPaste:"paste",pivotPanel:"pivot",rowGroupPanel:"group",valuePanel:"aggregation",columnGroupOpened:"expanded",columnGroupClosed:"contracted",columnSelectClosed:"tree-closed",columnSelectOpen:"tree-open",sortAscending:"asc",sortDescending:"desc",sortUnSort:"none"},e.passiveEvents=["touchstart","touchend","touchmove","touchcancel"],e}();t.Utils=a;var l=function(){function e(e,t){void 0===e&&(e=0),void 0===t&&(t=1),this.nextValue=e,this.step=t}return e.prototype.next=function(){var e=this.nextValue;return this.nextValue+=this.step,e},e.prototype.peek=function(){return this.nextValue},e.prototype.skip=function(e){this.nextValue+=e},e}();t.NumberSequence=l,t._=a},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){}return e.STEP_EVERYTHING=0,e.STEP_FILTER=1,e.STEP_SORT=2,e.STEP_MAP=3,e.STEP_AGGREGATE=4,e.STEP_PIVOT=5,e.ROW_BUFFER_SIZE=10,e.LAYOUT_INTERVAL=500,e.EXPORT_TYPE_DRAG_COPY="dragCopy",e.EXPORT_TYPE_CLIPBOARD="clipboard",e.EXPORT_TYPE_EXCEL="excel",e.EXPORT_TYPE_CSV="csv",e.KEY_BACKSPACE=8,e.KEY_TAB=9,e.KEY_ENTER=13,e.KEY_SHIFT=16,e.KEY_ESCAPE=27,e.KEY_SPACE=32,e.KEY_LEFT=37,e.KEY_UP=38,e.KEY_RIGHT=39,e.KEY_DOWN=40,e.KEY_DELETE=46,e.KEY_A=65,e.KEY_C=67,e.KEY_V=86,e.KEY_D=68,e.KEY_F2=113,e.KEY_PAGE_UP=33,e.KEY_PAGE_DOWN=34,e.KEY_PAGE_HOME=36,e.KEY_PAGE_END=35,e.KEY_PAGE_UP_NAME="pageUp",e.KEY_PAGE_DOWN_NAME="pageDown",e.KEY_PAGE_HOME_NAME="home",e.KEY_PAGE_END_NAME="end",e.KEY_CTRL_UP_NAME="ctrlUp",e.KEY_CTRL_LEFT_NAME="ctrlLeft",e.KEY_CTRL_RIGHT_NAME="ctrlRight",e.KEY_CTRL_DOWN_NAME="ctrlDown",e.ROW_MODEL_TYPE_INFINITE="infinite",e.ROW_MODEL_TYPE_VIEWPORT="viewport",e.ROW_MODEL_TYPE_IN_MEMORY="inMemory",e.ROW_MODEL_TYPE_ENTERPRISE="enterprise",e.DEPRECATED_ROW_MODEL_TYPE_NORMAL="normal",e.ALWAYS="always",e.ONLY_WHEN_GROUPING="onlyWhenGrouping",e.PINNED_TOP="top",e.PINNED_BOTTOM="bottom",e.VERTICAL_SCROLL_KEYS_ID="verticalScrollKeys",e.HORIZONTAL_SCROLL_KEYS_ID="horizontalScrollKeys",e.DIAGONAL_SCROLL_KEYS_ID="diagonalScrollKeys",e.VERTICAL_SCROLL_KEYS={id:e.VERTICAL_SCROLL_KEYS_ID,bindings:[{id:e.KEY_PAGE_UP_NAME,ctlRequired:!1,altRequired:!1,keyCode:e.KEY_PAGE_UP},{id:e.KEY_PAGE_DOWN_NAME,ctlRequired:!1,altRequired:!1,keyCode:e.KEY_PAGE_DOWN},{id:e.KEY_CTRL_UP_NAME,ctlRequired:!0,altRequired:!1,keyCode:e.KEY_UP},{id:e.KEY_CTRL_DOWN_NAME,ctlRequired:!0,altRequired:!1,keyCode:e.KEY_DOWN}]},e.HORIZONTAL_SCROLL_KEYS={id:e.HORIZONTAL_SCROLL_KEYS_ID,bindings:[{id:e.KEY_CTRL_LEFT_NAME,ctlRequired:!0,altRequired:!1,keyCode:e.KEY_LEFT},{id:e.KEY_CTRL_RIGHT_NAME,ctlRequired:!0,altRequired:!1,keyCode:e.KEY_RIGHT}]},e.DIAGONAL_SCROLL_KEYS={id:e.DIAGONAL_SCROLL_KEYS_ID,bindings:[{id:e.KEY_PAGE_HOME_NAME,ctlRequired:!1,altRequired:!1,keyCode:e.KEY_PAGE_HOME},{id:e.KEY_PAGE_END_NAME,ctlRequired:!1,altRequired:!1,keyCode:e.KEY_PAGE_END}]},e}();t.Constants=o},function(e,t,o){"use strict";function i(e){(e.rowDeselected||e.onRowDeselected)&&console.warn("ag-grid: as of v3.4 rowDeselected no longer exists. Please check the docs.")}Object.defineProperty(t,"__esModule",{value:!0});var n=o(11),r=o(8),s=function(){function e(){}return e.getEventCallbacks=function(){return e.EVENT_CALLBACKS||(e.EVENT_CALLBACKS=[],e.EVENTS.forEach(function(t){e.EVENT_CALLBACKS.push(e.getCallbackForEvent(t))})),e.EVENT_CALLBACKS},e.copyAttributesToGridOptions=function(t,o){i(o),"object"!=typeof t&&(t={});var n=t;return e.ARRAY_PROPERTIES.concat(e.STRING_PROPERTIES).concat(e.OBJECT_PROPERTIES).concat(e.FUNCTION_PROPERTIES).forEach(function(e){void 0!==o[e]&&(n[e]=o[e])}),e.BOOLEAN_PROPERTIES.forEach(function(t){void 0!==o[t]&&(n[t]=e.toBoolean(o[t]))}),e.NUMBER_PROPERTIES.forEach(function(t){void 0!==o[t]&&(n[t]=e.toNumber(o[t]))}),e.getEventCallbacks().forEach(function(e){void 0!==o[e]&&(n[e]=o[e])}),t},e.getCallbackForEvent=function(e){return!e||e.length<2?e:"on"+e[0].toUpperCase()+e.substr(1)},e.processOnChange=function(t,o,s,a){if(t){i(t);var l=o;e.ARRAY_PROPERTIES.concat(e.OBJECT_PROPERTIES).concat(e.STRING_PROPERTIES).forEach(function(e){t[e]&&(l[e]=t[e].currentValue)}),e.BOOLEAN_PROPERTIES.forEach(function(o){t[o]&&(l[o]=e.toBoolean(t[o].currentValue))}),e.NUMBER_PROPERTIES.forEach(function(o){t[o]&&(l[o]=e.toNumber(t[o].currentValue))}),e.getEventCallbacks().forEach(function(e){t[e]&&(l[e]=t[e].currentValue)}),t.showToolPanel&&s.showToolPanel(e.toBoolean(t.showToolPanel.currentValue)),t.quickFilterText&&s.setQuickFilter(t.quickFilterText.currentValue),t.rowData&&s.setRowData(t.rowData.currentValue),t.pinnedTopRowData&&s.setFloatingTopRowData(t.pinnedTopRowData.currentValue),t.pinnedBottomRowData&&s.setFloatingBottomRowData(t.pinnedBottomRowData.currentValue),t.columnDefs&&s.setColumnDefs(t.columnDefs.currentValue),t.datasource&&s.setDatasource(t.datasource.currentValue),t.headerHeight&&s.setHeaderHeight(e.toNumber(t.headerHeight.currentValue)),t.paginationPageSize&&s.paginationSetPageSize(e.toNumber(t.paginationPageSize.currentValue)),t.pivotMode&&a.setPivotMode(e.toBoolean(t.pivotMode.currentValue)),t.groupRemoveSingleChildren&&s.setGroupRemoveSingleChildren(e.toBoolean(t.groupRemoveSingleChildren.currentValue));var p={type:n.Events.EVENT_COMPONENT_STATE_CHANGED,api:o.api,columnApi:o.columnApi};r.Utils.iterateObject(t,function(e,t){p[e]=t}),s.dispatchEvent(p)}},e.toBoolean=function(e){return"boolean"==typeof e?e:"string"==typeof e&&("TRUE"===e.toUpperCase()||""==e)},e.toNumber=function(e){return"number"==typeof e?e:"string"==typeof e?Number(e):void 0},e.EVENTS=[],e.STRING_PROPERTIES=["sortingOrder","rowClass","rowSelection","overlayLoadingTemplate","overlayNoRowsTemplate","headerCellTemplate","quickFilterText","rowModelType","editType","domLayout","clipboardDeliminator","rowGroupPanelShow"],e.OBJECT_PROPERTIES=["components","frameworkComponents","rowStyle","context","autoGroupColumnDef","groupColumnDef","localeText","icons","datasource","enterpriseDatasource","viewportDatasource","groupRowRendererParams","aggFuncs","fullWidthCellRendererParams","defaultColGroupDef","defaultColDef","defaultExportParams","columnTypes"],e.ARRAY_PROPERTIES=["slaveGrids","alignedGrids","rowData","columnDefs","excelStyles","pinnedTopRowData","pinnedBottomRowData"],e.NUMBER_PROPERTIES=["rowHeight","rowBuffer","colWidth","headerHeight","groupHeaderHeight","floatingFiltersHeight","pivotHeaderHeight","pivotGroupHeaderHeight","groupDefaultExpanded","minColWidth","maxColWidth","viewportRowModelPageSize","viewportRowModelBufferSize","layoutInterval","autoSizePadding","maxBlocksInCache","maxConcurrentDatasourceRequests","cacheOverflowSize","paginationPageSize","cacheBlockSize","infiniteInitialRowCount","scrollbarWidth","paginationStartPage","infiniteBlockSize"],e.BOOLEAN_PROPERTIES=["toolPanelSuppressRowGroups","toolPanelSuppressValues","toolPanelSuppressPivots","toolPanelSuppressPivotMode","suppressRowClickSelection","suppressCellSelection","suppressHorizontalScroll","debug","enableColResize","enableCellExpressions","enableSorting","enableServerSideSorting","enableFilter","enableServerSideFilter","angularCompileRows","angularCompileFilters","angularCompileHeaders","groupSuppressAutoColumn","groupSelectsChildren","groupIncludeFooter","groupUseEntireRow","groupSuppressRow","groupSuppressBlankHeader","forPrint","suppressMenuHide","rowDeselection","unSortIcon","suppressMultiSort","singleClickEdit","suppressLoadingOverlay","suppressNoRowsOverlay","suppressAutoSize","suppressParentsInRowNodes","showToolPanel","suppressColumnMoveAnimation","suppressMovableColumns","suppressFieldDotNotation","enableRangeSelection","pivotPanelShow","suppressTouch","suppressAsyncEvents","allowContextMenuWithControlKey","suppressContextMenu","suppressMenuFilterPanel","suppressMenuMainPanel","suppressMenuColumnPanel","enableStatusBar","alwaysShowStatusBar","rememberGroupStateWhenNewData","enableCellChangeFlash","suppressDragLeaveHidesColumns","suppressMiddleClickScrolls","suppressPreventDefaultOnMouseWheel","suppressUseColIdForGroups","suppressCopyRowsToClipboard","pivotMode","suppressAggFuncInHeader","suppressColumnVirtualisation","suppressAggAtRootLevel","suppressFocusAfterRefresh","functionsPassive","functionsReadOnly","animateRows","groupSelectsFiltered","groupRemoveSingleChildren","enableRtl","suppressClickEdit","enableGroupEdit","embedFullWidthRows","suppressTabbing","suppressPaginationPanel","floatingFilter","groupHideOpenParents","groupMultiAutoColumn","pagination","stopEditingWhenGridLosesFocus","paginationAutoPageSize","suppressScrollOnNewData","purgeClosedRowNodes","cacheQuickFilter","deltaRowDataMode","ensureDomOrder","accentedSort","pivotTotals","suppressChangeDetection","valueCache","valueCacheNeverExpires","aggregateOnlyChangedColumns","suppressAnimationFrame","suppressExcelExport","suppressCsvExport"],e.FUNCTION_PROPERTIES=["headerCellRenderer","localeTextFunc","groupRowInnerRenderer","groupRowInnerRendererFramework","dateComponent","dateComponentFramework","groupRowRenderer","groupRowRendererFramework","isExternalFilterPresent","getRowHeight","doesExternalFilterPass","getRowClass","getRowStyle","getHeaderCellTemplate","traverseNode","getContextMenuItems","getMainMenuItems","processRowPostCreate","processCellForClipboard","getNodeChildDetails","groupRowAggNodes","getRowNodeId","isFullWidthCell","fullWidthCellRenderer","fullWidthCellRendererFramework","doesDataFlower","processSecondaryColDef","processSecondaryColGroupDef","getBusinessKeyForNode","sendToClipboard","navigateToNextCell","tabToNextCell","processCellFromClipboard","getDocument","postProcessPopup","getChildCount"],e.ALL_PROPERTIES=e.ARRAY_PROPERTIES.concat(e.OBJECT_PROPERTIES).concat(e.STRING_PROPERTIES).concat(e.NUMBER_PROPERTIES).concat(e.FUNCTION_PROPERTIES).concat(e.BOOLEAN_PROPERTIES),e}();t.ComponentUtil=s,r.Utils.iterateObject(n.Events,function(e,t){s.EVENTS.push(t)})},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){}return e.EVENT_COLUMN_EVERYTHING_CHANGED="columnEverythingChanged",e.EVENT_NEW_COLUMNS_LOADED="newColumnsLoaded",e.EVENT_COLUMN_PIVOT_MODE_CHANGED="columnPivotModeChanged",e.EVENT_COLUMN_ROW_GROUP_CHANGED="columnRowGroupChanged",e.EVENT_COLUMN_PIVOT_CHANGED="columnPivotChanged",e.EVENT_GRID_COLUMNS_CHANGED="gridColumnsChanged",e.EVENT_COLUMN_VALUE_CHANGED="columnValueChanged",e.EVENT_COLUMN_MOVED="columnMoved",e.EVENT_COLUMN_VISIBLE="columnVisible",e.EVENT_COLUMN_PINNED="columnPinned",e.EVENT_COLUMN_GROUP_OPENED="columnGroupOpened",e.EVENT_COLUMN_RESIZED="columnResized",e.EVENT_DISPLAYED_COLUMNS_CHANGED="displayedColumnsChanged",e.EVENT_VIRTUAL_COLUMNS_CHANGED="virtualColumnsChanged",e.EVENT_ROW_GROUP_OPENED="rowGroupOpened",e.EVENT_ROW_DATA_CHANGED="rowDataChanged",e.EVENT_ROW_DATA_UPDATED="rowDataUpdated",e.EVENT_PINNED_ROW_DATA_CHANGED="pinnedRowDataChanged",e.EVENT_RANGE_SELECTION_CHANGED="rangeSelectionChanged",e.EVENT_MODEL_UPDATED="modelUpdated",e.EVENT_CELL_CLICKED="cellClicked",e.EVENT_CELL_DOUBLE_CLICKED="cellDoubleClicked",e.EVENT_CELL_CONTEXT_MENU="cellContextMenu",e.EVENT_CELL_VALUE_CHANGED="cellValueChanged",e.EVENT_ROW_VALUE_CHANGED="rowValueChanged",e.EVENT_CELL_FOCUSED="cellFocused",e.EVENT_ROW_SELECTED="rowSelected",e.EVENT_SELECTION_CHANGED="selectionChanged",e.EVENT_CELL_MOUSE_OVER="cellMouseOver",e.EVENT_CELL_MOUSE_OUT="cellMouseOut",e.EVENT_FILTER_CHANGED="filterChanged",e.EVENT_FILTER_MODIFIED="filterModified",e.EVENT_SORT_CHANGED="sortChanged",e.EVENT_VIRTUAL_ROW_REMOVED="virtualRowRemoved",e.EVENT_ROW_CLICKED="rowClicked",e.EVENT_ROW_DOUBLE_CLICKED="rowDoubleClicked",e.EVENT_GRID_READY="gridReady",e.EVENT_GRID_SIZE_CHANGED="gridSizeChanged",e.EVENT_VIEWPORT_CHANGED="viewportChanged",e.EVENT_DRAG_STARTED="dragStarted",e.EVENT_DRAG_STOPPED="dragStopped",e.EVENT_ROW_EDITING_STARTED="rowEditingStarted",e.EVENT_ROW_EDITING_STOPPED="rowEditingStopped",e.EVENT_CELL_EDITING_STARTED="cellEditingStarted",e.EVENT_CELL_EDITING_STOPPED="cellEditingStopped",e.EVENT_BODY_SCROLL="bodyScroll",e.EVENT_PAGINATION_CHANGED="paginationChanged",e.EVENT_COMPONENT_STATE_CHANGED="componentStateChanged",e.EVENT_BODY_HEIGHT_CHANGED="bodyHeightChanged",e.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED="displayedColumnsWidthChanged",e.EVENT_SCROLL_VISIBILITY_CHANGED="scrollVisibilityChanged",e.EVENT_COLUMN_HOVER_CHANGED="columnHoverChanged",e.EVENT_FLASH_CELLS="flashCells",e.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST="columnRowGroupChangeRequest",e.EVENT_COLUMN_PIVOT_CHANGE_REQUEST="columnPivotChangeRequest",e.EVENT_COLUMN_VALUE_CHANGE_REQUEST="columnValueChangeRequest",e.EVENT_COLUMN_AGG_FUNC_CHANGE_REQUEST="columnAggFuncChangeRequest",e}();t.Events=o},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(13),s=o(23),a=o(88),l=o(51),p=o(15),u=o(27),c=o(4),d=o(24),h=o(31),f=o(5),g=o(9),y=o(7),v=o(50),m=o(62),C=o(38),E=o(33),w=o(8),R=o(77),_=o(70),O=o(41),A=o(107),S=o(32),b=o(43),P=o(44),D=function(){function e(){}return e.prototype.init=function(){switch(this.rowModel.getType()){case g.Constants.ROW_MODEL_TYPE_IN_MEMORY:this.inMemoryRowModel=this.rowModel;break;case g.Constants.ROW_MODEL_TYPE_INFINITE:this.infinitePageRowModel=this.rowModel;break;case g.Constants.ROW_MODEL_TYPE_ENTERPRISE:this.enterpriseRowModel=this.rowModel}},e.prototype.__getAlignedGridService=function(){return this.alignedGridsService},e.prototype.getDataAsCsv=function(e){return this.csvCreator.getDataAsCsv(e)},e.prototype.exportDataAsCsv=function(e){this.csvCreator.exportDataAsCsv(e)},e.prototype.getDataAsExcel=function(e){return this.excelCreator||console.warn("ag-Grid: Excel export is only available in ag-Grid Enterprise"),this.excelCreator.getDataAsExcelXml(e)},e.prototype.exportDataAsExcel=function(e){this.excelCreator||console.warn("ag-Grid: Excel export is only available in ag-Grid Enterprise"),this.excelCreator.exportDataAsExcel(e)},e.prototype.setEnterpriseDatasource=function(e){this.gridOptionsWrapper.isRowModelEnterprise()?this.rowModel.setDatasource(e):console.warn("ag-Grid: you can only use an enterprise datasource when gridOptions.rowModelType is '"+g.Constants.ROW_MODEL_TYPE_ENTERPRISE+"'")},e.prototype.setDatasource=function(e){this.gridOptionsWrapper.isRowModelInfinite()?this.rowModel.setDatasource(e):console.warn("ag-Grid: you can only use a datasource when gridOptions.rowModelType is '"+g.Constants.ROW_MODEL_TYPE_INFINITE+"'")},e.prototype.setViewportDatasource=function(e){this.gridOptionsWrapper.isRowModelViewport()?this.rowModel.setViewportDatasource(e):console.warn("ag-Grid: you can only use a viewport datasource when gridOptions.rowModelType is '"+g.Constants.ROW_MODEL_TYPE_VIEWPORT+"'")},e.prototype.setRowData=function(e){if(this.gridOptionsWrapper.isRowModelDefault())if(this.gridOptionsWrapper.isDeltaRowDataMode()){var t=this.immutableService.createTransactionForRowData(e);this.inMemoryRowModel.updateRowData(t)}else this.selectionController.reset(),this.inMemoryRowModel.setRowData(e);else console.log("cannot call setRowData unless using normal row model")},e.prototype.setFloatingTopRowData=function(e){console.warn("ag-Grid: since v12, api.setFloatingTopRowData() is now api.setPinnedTopRowData()"),this.setPinnedTopRowData(e)},e.prototype.setFloatingBottomRowData=function(e){console.warn("ag-Grid: since v12, api.setFloatingBottomRowData() is now api.setPinnedBottomRowData()"),this.setPinnedBottomRowData(e)},e.prototype.getFloatingTopRowCount=function(){return console.warn("ag-Grid: since v12, api.getFloatingTopRowCount() is now api.getPinnedTopRowCount()"),this.getPinnedTopRowCount()},e.prototype.getFloatingBottomRowCount=function(){return console.warn("ag-Grid: since v12, api.getFloatingBottomRowCount() is now api.getPinnedBottomRowCount()"),this.getPinnedBottomRowCount()},e.prototype.getFloatingTopRow=function(e){return console.warn("ag-Grid: since v12, api.getFloatingTopRow() is now api.getPinnedTopRow()"),this.getPinnedTopRow(e)},e.prototype.getFloatingBottomRow=function(e){return console.warn("ag-Grid: since v12, api.getFloatingBottomRow() is now api.getPinnedBottomRow()"),this.getPinnedBottomRow(e)},e.prototype.setPinnedTopRowData=function(e){this.pinnedRowModel.setPinnedTopRowData(e)},e.prototype.setPinnedBottomRowData=function(e){this.pinnedRowModel.setPinnedBottomRowData(e)},e.prototype.getPinnedTopRowCount=function(){return this.pinnedRowModel.getPinnedTopRowCount()},e.prototype.getPinnedBottomRowCount=function(){return this.pinnedRowModel.getPinnedBottomRowCount()},e.prototype.getPinnedTopRow=function(e){return this.pinnedRowModel.getPinnedTopRow(e)},e.prototype.getPinnedBottomRow=function(e){return this.pinnedRowModel.getPinnedBottomRow(e)},e.prototype.setColumnDefs=function(e){this.columnController.setColumnDefs(e)},e.prototype.expireValueCache=function(){this.valueCache.expire()},e.prototype.getVerticalPixelRange=function(){return this.gridPanel.getVerticalPixelRange()},e.prototype.refreshCells=function(e){if(void 0===e&&(e={}),Array.isArray(e))return void console.warn("since ag-Grid v11.1, refreshCells() now takes parameters, please see the documentation.");this.rowRenderer.refreshCells(e)},e.prototype.redrawRows=function(e){void 0===e&&(e={}),e&&e.rowNodes?this.rowRenderer.redrawRows(e.rowNodes):this.rowRenderer.redrawAfterModelUpdate()},e.prototype.timeFullRedraw=function(e){function t(){var a=(new Date).getTime();s.rowRenderer.redrawAfterModelUpdate();var l=(new Date).getTime();setTimeout(function(){var s=(new Date).getTime(),p=l-a,u=s-l;console.log("duration:  processing = "+p+"ms, reflow = "+u+"ms"),i++,n+=p,r+=u,i<e?setTimeout(t,1e3):o()},0)}function o(){console.log("tests complete. iteration count = "+i),console.log("average processing = "+n/i+"ms"),console.log("average reflow = "+r/i+"ms")}void 0===e&&(e=1);var i=0,n=0,r=0,s=this;t()},e.prototype.refreshView=function(){console.warn("ag-Grid: since v11.1, refreshView() is deprecated, please call redrawRows() instead"),this.redrawRows()},e.prototype.refreshRows=function(e){console.warn("since ag-Grid v11.1, refreshRows() is deprecated, please use refreshCells({rowNodes: rows}) or redrawRows({rowNodes: rows}) instead"),this.refreshCells({rowNodes:e})},e.prototype.rowDataChanged=function(e){console.log("ag-Grid: rowDataChanged is deprecated, either call refreshView() to refresh everything, or call rowNode.setRowData(newData) to set value on a particular node"),this.redrawRows()},e.prototype.softRefreshView=function(){console.warn("ag-Grid: since v11.1, softRefreshView() is deprecated, call refreshCells(params) instead."),this.refreshCells({volatile:!0})},e.prototype.refreshGroupRows=function(){console.warn("ag-Grid: since v11.1, refreshGroupRows() is no longer supported, call refreshCells() instead. Because refreshCells() now does dirty checking, it will only refresh cells that have changed, so it should not be necessary to only refresh the group rows."),this.refreshCells()},e.prototype.setFunctionsReadOnly=function(e){this.gridOptionsWrapper.setProperty("functionsReadOnly",e)},e.prototype.refreshHeader=function(){this.headerRenderer.refreshHeader()},e.prototype.isAnyFilterPresent=function(){return this.filterManager.isAnyFilterPresent()},e.prototype.isAdvancedFilterPresent=function(){return this.filterManager.isAdvancedFilterPresent()},e.prototype.isQuickFilterPresent=function(){return this.filterManager.isQuickFilterPresent()},e.prototype.getModel=function(){return this.rowModel},e.prototype.onGroupExpandedOrCollapsed=function(e){w.Utils.missing(this.inMemoryRowModel)&&console.log("ag-Grid: cannot call onGroupExpandedOrCollapsed unless using normal row model"),w.Utils.exists(e)&&console.log("ag-Grid: api.onGroupExpandedOrCollapsed - refreshFromIndex parameter is not longer used, the grid will refresh all rows"),this.inMemoryRowModel.refreshModel({step:g.Constants.STEP_MAP})},e.prototype.refreshInMemoryRowModel=function(e){w.Utils.missing(this.inMemoryRowModel)&&console.log("cannot call refreshInMemoryRowModel unless using normal row model");var t=g.Constants.STEP_EVERYTHING,o={group:g.Constants.STEP_EVERYTHING,filter:g.Constants.STEP_FILTER,map:g.Constants.STEP_MAP,aggregate:g.Constants.STEP_AGGREGATE,sort:g.Constants.STEP_SORT,pivot:g.Constants.STEP_PIVOT};if(w.Utils.exists(e)&&(t=o[e]),w.Utils.missing(t))return void console.error("ag-Grid: invalid step "+e+", available steps are "+Object.keys(o).join(", "));var i={step:t,keepRenderedRows:!0,animate:!0,keepEditingRows:!0};this.inMemoryRowModel.refreshModel(i)},e.prototype.getRowNode=function(e){return w.Utils.missing(this.inMemoryRowModel)?void console.warn("ag-Grid: cannot call getRowNode unless using normal row model"):this.inMemoryRowModel.getRowNode(e)},e.prototype.expandAll=function(){if(w.Utils.missing(this.inMemoryRowModel))return void console.warn("ag-Grid: cannot call expandAll unless using normal row model");this.inMemoryRowModel.expandOrCollapseAll(!0)},e.prototype.collapseAll=function(){if(w.Utils.missing(this.inMemoryRowModel))return void console.warn("ag-Grid: cannot call collapseAll unless using normal row model");this.inMemoryRowModel.expandOrCollapseAll(!1)},e.prototype.addVirtualRowListener=function(e,t,o){"string"!=typeof e&&console.log("ag-Grid: addVirtualRowListener is deprecated, please use addRenderedRowListener."),this.addRenderedRowListener(e,t,o)},e.prototype.addRenderedRowListener=function(e,t,o){"virtualRowRemoved"===e&&(console.log("ag-Grid: event virtualRowRemoved is deprecated, now called renderedRowRemoved"),e=""),"virtualRowSelected"===e&&console.log("ag-Grid: event virtualRowSelected is deprecated, to register for individual row selection events, add a listener directly to the row node."),this.rowRenderer.addRenderedRowListener(e,t,o)},e.prototype.setQuickFilter=function(e){this.filterManager.setQuickFilter(e)},e.prototype.selectIndex=function(e,t,o){console.log("ag-Grid: do not use api for selection, call node.setSelected(value) instead"),o&&console.log("ag-Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),this.selectionController.selectIndex(e,t)},e.prototype.deselectIndex=function(e,t){void 0===t&&(t=!1),console.log("ag-Grid: do not use api for selection, call node.setSelected(value) instead"),t&&console.log("ag-Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),this.selectionController.deselectIndex(e)},e.prototype.selectNode=function(e,t,o){void 0===t&&(t=!1),void 0===o&&(o=!1),console.log("ag-Grid: API for selection is deprecated, call node.setSelected(value) instead"),o&&console.log("ag-Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),e.setSelectedParams({newValue:!0,clearSelection:!t})},e.prototype.deselectNode=function(e,t){void 0===t&&(t=!1),console.log("ag-Grid: API for selection is deprecated, call node.setSelected(value) instead"),t&&console.log("ag-Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),e.setSelectedParams({newValue:!1})},e.prototype.selectAll=function(){this.selectionController.selectAllRowNodes()},e.prototype.deselectAll=function(){this.selectionController.deselectAllRowNodes()},e.prototype.selectAllFiltered=function(){this.selectionController.selectAllRowNodes(!0)},e.prototype.deselectAllFiltered=function(){this.selectionController.deselectAllRowNodes(!0)},e.prototype.recomputeAggregates=function(){w.Utils.missing(this.inMemoryRowModel)&&console.log("cannot call recomputeAggregates unless using normal row model"),this.inMemoryRowModel.refreshModel({step:g.Constants.STEP_AGGREGATE})},e.prototype.sizeColumnsToFit=function(){if(this.gridOptionsWrapper.isForPrint())return void console.warn("ag-grid: sizeColumnsToFit does not work when forPrint=true");this.gridPanel.sizeColumnsToFit()},e.prototype.showLoadingOverlay=function(){this.gridPanel.showLoadingOverlay()},e.prototype.showNoRowsOverlay=function(){this.gridPanel.showNoRowsOverlay()},e.prototype.hideOverlay=function(){this.gridPanel.hideOverlay()},e.prototype.isNodeSelected=function(e){return console.log("ag-Grid: no need to call api.isNodeSelected(), just call node.isSelected() instead"),e.isSelected()},e.prototype.getSelectedNodesById=function(){return console.error("ag-Grid: since version 3.4, getSelectedNodesById no longer exists, use getSelectedNodes() instead"),null},e.prototype.getSelectedNodes=function(){return this.selectionController.getSelectedNodes()},e.prototype.getSelectedRows=function(){return this.selectionController.getSelectedRows()},e.prototype.getBestCostNodeSelection=function(){return this.selectionController.getBestCostNodeSelection()},e.prototype.getRenderedNodes=function(){return this.rowRenderer.getRenderedNodes()},e.prototype.ensureColIndexVisible=function(e){console.warn("ag-Grid: ensureColIndexVisible(index) no longer supported, use ensureColumnVisible(colKey) instead.")},e.prototype.ensureColumnVisible=function(e){this.gridPanel.ensureColumnVisible(e)},e.prototype.ensureIndexVisible=function(e){this.gridPanel.ensureIndexVisible(e)},e.prototype.ensureNodeVisible=function(e){this.gridCore.ensureNodeVisible(e)},e.prototype.forEachLeafNode=function(e){w.Utils.missing(this.inMemoryRowModel)&&console.log("cannot call forEachNode unless using normal row model"),this.inMemoryRowModel.forEachLeafNode(e)},e.prototype.forEachNode=function(e){this.rowModel.forEachNode(e)},e.prototype.forEachNodeAfterFilter=function(e){w.Utils.missing(this.inMemoryRowModel)&&console.log("cannot call forEachNodeAfterFilter unless using normal row model"),this.inMemoryRowModel.forEachNodeAfterFilter(e)},e.prototype.forEachNodeAfterFilterAndSort=function(e){w.Utils.missing(this.inMemoryRowModel)&&console.log("cannot call forEachNodeAfterFilterAndSort unless using normal row model"),this.inMemoryRowModel.forEachNodeAfterFilterAndSort(e)},e.prototype.getFilterApiForColDef=function(e){return console.warn("ag-grid API method getFilterApiForColDef deprecated, use getFilterApi instead"),this.getFilterInstance(e)},e.prototype.getFilterInstance=function(e){var t=this.columnController.getPrimaryColumn(e);if(t)return this.filterManager.getFilterComponent(t)},e.prototype.getFilterApi=function(e){return console.warn("ag-Grid: getFilterApi is deprecated, use getFilterInstance instead"),this.getFilterInstance(e)},e.prototype.destroyFilter=function(e){var t=this.columnController.getPrimaryColumn(e);if(t)return this.filterManager.destroyFilter(t)},e.prototype.getColumnDef=function(e){var t=this.columnController.getPrimaryColumn(e);return t?t.getColDef():null},e.prototype.onFilterChanged=function(){this.filterManager.onFilterChanged()},e.prototype.onSortChanged=function(){this.sortController.onSortChanged()},e.prototype.setSortModel=function(e){this.sortController.setSortModel(e)},e.prototype.getSortModel=function(){return this.sortController.getSortModel()},e.prototype.setFilterModel=function(e){this.filterManager.setFilterModel(e)},e.prototype.getFilterModel=function(){return this.filterManager.getFilterModel()},e.prototype.getFocusedCell=function(){return this.focusedCellController.getFocusedCell()},e.prototype.clearFocusedCell=function(){return this.focusedCellController.clearFocusedCell()},e.prototype.setFocusedCell=function(e,t,o){this.focusedCellController.setFocusedCell(e,t,o,!0)},e.prototype.setHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(c.GridOptionsWrapper.PROP_HEADER_HEIGHT,e),this.doLayout()},e.prototype.setGroupHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(c.GridOptionsWrapper.PROP_GROUP_HEADER_HEIGHT,e),this.doLayout()},e.prototype.setFloatingFiltersHeight=function(e){this.gridOptionsWrapper.setProperty(c.GridOptionsWrapper.PROP_FLOATING_FILTERS_HEIGHT,e),this.doLayout()},e.prototype.setPivotGroupHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(c.GridOptionsWrapper.PROP_PIVOT_GROUP_HEADER_HEIGHT,e),this.doLayout()},e.prototype.setPivotHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(c.GridOptionsWrapper.PROP_PIVOT_HEADER_HEIGHT,e),this.doLayout()},e.prototype.showToolPanel=function(e){this.gridCore.showToolPanel(e)},e.prototype.isToolPanelShowing=function(){return this.gridCore.isToolPanelShowing()},e.prototype.doLayout=function(){this.gridCore.doLayout()},e.prototype.resetRowHeights=function(){w.Utils.exists(this.inMemoryRowModel)&&this.inMemoryRowModel.resetRowHeights()},e.prototype.setGroupRemoveSingleChildren=function(e){this.gridOptionsWrapper.setProperty(c.GridOptionsWrapper.PROP_GROUP_REMOVE_SINGLE_CHILDREN,e)},e.prototype.onRowHeightChanged=function(){w.Utils.exists(this.inMemoryRowModel)&&this.inMemoryRowModel.onRowHeightChanged()},e.prototype.getValue=function(e,t){var o=this.columnController.getPrimaryColumn(e);return w.Utils.missing(o)&&(o=this.columnController.getGridColumn(e)),w.Utils.missing(o)?null:this.valueService.getValue(o,t)},e.prototype.addEventListener=function(e,t){var o=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addEventListener(e,t,o)},e.prototype.addGlobalListener=function(e){var t=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addGlobalListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventService.removeEventListener(e,t)},e.prototype.removeGlobalListener=function(e){this.eventService.removeGlobalListener(e)},e.prototype.dispatchEvent=function(e){this.eventService.dispatchEvent(e)},e.prototype.destroy=function(){this.context.destroy()},e.prototype.resetQuickFilter=function(){this.rowModel.forEachNode(function(e){return e.quickFilterAggregateText=null})},e.prototype.getRangeSelections=function(){return this.rangeController?this.rangeController.getCellRanges():(console.warn("ag-Grid: cell range selection is only available in ag-Grid Enterprise"),null)},e.prototype.camelCaseToHumanReadable=function(e){return w.Utils.camelCaseToHumanText(e)},e.prototype.addRangeSelection=function(e){this.rangeController||console.warn("ag-Grid: cell range selection is only available in ag-Grid Enterprise"),this.rangeController.addRange(e)},e.prototype.clearRangeSelection=function(){this.rangeController||console.warn("ag-Grid: cell range selection is only available in ag-Grid Enterprise"),this.rangeController.clearSelection()},e.prototype.copySelectedRowsToClipboard=function(e,t){this.clipboardService||console.warn("ag-Grid: clipboard is only available in ag-Grid Enterprise"),this.clipboardService.copySelectedRowsToClipboard(e,t)},e.prototype.copySelectedRangeToClipboard=function(e){this.clipboardService||console.warn("ag-Grid: clipboard is only available in ag-Grid Enterprise"),this.clipboardService.copySelectedRangeToClipboard(e)},e.prototype.copySelectedRangeDown=function(){this.clipboardService||console.warn("ag-Grid: clipboard is only available in ag-Grid Enterprise"),this.clipboardService.copyRangeDown()},e.prototype.showColumnMenuAfterButtonClick=function(e,t){var o=this.columnController.getPrimaryColumn(e);this.menuFactory.showMenuAfterButtonClick(o,t)},e.prototype.showColumnMenuAfterMouseClick=function(e,t){var o=this.columnController.getPrimaryColumn(e);this.menuFactory.showMenuAfterMouseEvent(o,t)},e.prototype.tabToNextCell=function(){return this.rowRenderer.tabToNextCell(!1)},e.prototype.tabToPreviousCell=function(){return this.rowRenderer.tabToNextCell(!0)},e.prototype.stopEditing=function(e){void 0===e&&(e=!1),this.rowRenderer.stopEditing(e)},e.prototype.startEditingCell=function(e){var t=this.columnController.getGridColumn(e.colKey);if(!t)return void console.warn("ag-Grid: no column found for "+e.colKey);var o={rowIndex:e.rowIndex,floating:null,column:t},i=new E.GridCell(o);this.gridPanel.ensureIndexVisible(e.rowIndex),this.rowRenderer.startEditingCell(i,e.keyPress,e.charPress)},e.prototype.addAggFunc=function(e,t){this.aggFuncService&&this.aggFuncService.addAggFunc(e,t)},e.prototype.addAggFuncs=function(e){this.aggFuncService&&this.aggFuncService.addAggFuncs(e)},e.prototype.clearAggFuncs=function(){this.aggFuncService&&this.aggFuncService.clear()},e.prototype.updateRowData=function(e){var t=null;return this.inMemoryRowModel?t=this.inMemoryRowModel.updateRowData(e):this.infinitePageRowModel?this.infinitePageRowModel.updateRowData(e):console.error("ag-Grid: updateRowData() only works with InMemoryRowModel and InfiniteRowModel."),this.gridOptionsWrapper.isSuppressChangeDetection()||this.rowRenderer.refreshCells(),t},e.prototype.insertItemsAtIndex=function(e,t,o){void 0===o&&(o=!1),console.warn("ag-Grid: insertItemsAtIndex() is deprecated, use updateRowData(transaction) instead."),this.updateRowData({add:t,addIndex:e,update:null,remove:null})},e.prototype.removeItems=function(e,t){void 0===t&&(t=!1),console.warn("ag-Grid: removeItems() is deprecated, use updateRowData(transaction) instead.");var o=e.map(function(e){return e.data});this.updateRowData({add:null,addIndex:null,update:null,remove:o})},e.prototype.addItems=function(e,t){void 0===t&&(t=!1),console.warn("ag-Grid: addItems() is deprecated, use updateRowData(transaction) instead."),this.updateRowData({add:e,addIndex:null,update:null,remove:null})},e.prototype.refreshVirtualPageCache=function(){console.warn("ag-Grid: refreshVirtualPageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead"),this.refreshInfiniteCache()},e.prototype.refreshInfinitePageCache=function(){console.warn("ag-Grid: refreshInfinitePageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead"),this.refreshInfiniteCache()},e.prototype.refreshInfiniteCache=function(){this.infinitePageRowModel?this.infinitePageRowModel.refreshCache():console.warn("ag-Grid: api.refreshInfiniteCache is only available when rowModelType='infinite'.")},e.prototype.purgeVirtualPageCache=function(){console.warn("ag-Grid: purgeVirtualPageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead"),this.purgeInfinitePageCache()},e.prototype.purgeInfinitePageCache=function(){console.warn("ag-Grid: purgeInfinitePageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead"),this.purgeInfiniteCache()},e.prototype.purgeInfiniteCache=function(){this.infinitePageRowModel?this.infinitePageRowModel.purgeCache():console.warn("ag-Grid: api.purgeInfiniteCache is only available when rowModelType='infinite'.")},e.prototype.purgeEnterpriseCache=function(e){this.enterpriseRowModel?this.enterpriseRowModel.purgeCache(e):console.warn("ag-Grid: api.purgeEnterpriseCache is only available when rowModelType='enterprise'.")},e.prototype.getVirtualRowCount=function(){return console.warn("ag-Grid: getVirtualRowCount() is now called getInfiniteRowCount(), please call getInfiniteRowCount() instead"),this.getInfiniteRowCount()},e.prototype.getInfiniteRowCount=function(){if(this.infinitePageRowModel)return this.infinitePageRowModel.getVirtualRowCount();console.warn("ag-Grid: api.getVirtualRowCount is only available when rowModelType='virtual'.")},e.prototype.isMaxRowFound=function(){if(this.infinitePageRowModel)return this.infinitePageRowModel.isMaxRowFound();console.warn("ag-Grid: api.isMaxRowFound is only available when rowModelType='virtual'.")},e.prototype.setVirtualRowCount=function(e,t){console.warn("ag-Grid: setVirtualRowCount() is now called setInfiniteRowCount(), please call setInfiniteRowCount() instead"),this.setInfiniteRowCount(e,t)},e.prototype.setInfiniteRowCount=function(e,t){this.infinitePageRowModel?this.infinitePageRowModel.setVirtualRowCount(e,t):console.warn("ag-Grid: api.setVirtualRowCount is only available when rowModelType='virtual'.")},e.prototype.getVirtualPageState=function(){return console.warn("ag-Grid: getVirtualPageState() is now called getCacheBlockState(), please call getCacheBlockState() instead"),this.getCacheBlockState()},e.prototype.getInfinitePageState=function(){return console.warn("ag-Grid: getInfinitePageState() is now called getCacheBlockState(), please call getCacheBlockState() instead"),this.getCacheBlockState()},e.prototype.getCacheBlockState=function(){return this.infinitePageRowModel?this.infinitePageRowModel.getBlockState():this.enterpriseRowModel?this.enterpriseRowModel.getBlockState():void console.warn("ag-Grid: api.getCacheBlockState() is only available when rowModelType='infinite' or rowModelType='enterprise'.")},e.prototype.checkGridSize=function(){this.gridPanel.setBodyAndHeaderHeights()},e.prototype.getFirstRenderedRow=function(){return console.log("in ag-Grid v12, getFirstRenderedRow() was renamed to getFirstDisplayedRow()"),this.getFirstDisplayedRow()},e.prototype.getFirstDisplayedRow=function(){return this.rowRenderer.getFirstVirtualRenderedRow()},e.prototype.getLastRenderedRow=function(){return console.log("in ag-Grid v12, getLastRenderedRow() was renamed to getLastDisplayedRow()"),this.getLastDisplayedRow()},e.prototype.getLastDisplayedRow=function(){return this.rowRenderer.getLastVirtualRenderedRow()},e.prototype.getDisplayedRowAtIndex=function(e){return this.rowModel.getRow(e)},e.prototype.getDisplayedRowCount=function(){return this.rowModel.getRowCount()},e.prototype.paginationIsLastPageFound=function(){return this.paginationProxy.isLastPageFound()},e.prototype.paginationGetPageSize=function(){return this.paginationProxy.getPageSize()},e.prototype.paginationSetPageSize=function(e){this.gridOptionsWrapper.setProperty("paginationPageSize",e)},e.prototype.paginationGetCurrentPage=function(){return this.paginationProxy.getCurrentPage()},e.prototype.paginationGetTotalPages=function(){return this.paginationProxy.getTotalPages()},e.prototype.paginationGetRowCount=function(){return this.paginationProxy.getTotalRowCount()},e.prototype.paginationGoToNextPage=function(){this.paginationProxy.goToNextPage()},e.prototype.paginationGoToPreviousPage=function(){this.paginationProxy.goToPreviousPage()},e.prototype.paginationGoToFirstPage=function(){this.paginationProxy.goToFirstPage()},e.prototype.paginationGoToLastPage=function(){this.paginationProxy.goToLastPage()},e.prototype.paginationGoToPage=function(e){this.paginationProxy.goToPage(e)},i([y.Autowired("immutableService"),n("design:type",A.ImmutableService)],e.prototype,"immutableService",void 0),i([y.Autowired("csvCreator"),n("design:type",r.CsvCreator)],e.prototype,"csvCreator",void 0),i([y.Optional("excelCreator"),n("design:type",Object)],e.prototype,"excelCreator",void 0),i([y.Autowired("gridCore"),n("design:type",v.GridCore)],e.prototype,"gridCore",void 0),i([y.Autowired("rowRenderer"),n("design:type",s.RowRenderer)],e.prototype,"rowRenderer",void 0),i([y.Autowired("headerRenderer"),n("design:type",a.HeaderRenderer)],e.prototype,"headerRenderer",void 0),i([y.Autowired("filterManager"),n("design:type",l.FilterManager)],e.prototype,"filterManager",void 0),i([y.Autowired("columnController"),n("design:type",p.ColumnController)],e.prototype,"columnController",void 0),i([y.Autowired("selectionController"),n("design:type",u.SelectionController)],e.prototype,"selectionController",void 0),i([y.Autowired("gridOptionsWrapper"),n("design:type",c.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([y.Autowired("gridPanel"),n("design:type",d.GridPanel)],e.prototype,"gridPanel",void 0),i([y.Autowired("valueService"),n("design:type",h.ValueService)],e.prototype,"valueService",void 0),i([y.Autowired("alignedGridsService"),n("design:type",b.AlignedGridsService)],e.prototype,"alignedGridsService",void 0),i([y.Autowired("eventService"),n("design:type",f.EventService)],e.prototype,"eventService",void 0),i([y.Autowired("pinnedRowModel"),n("design:type",P.PinnedRowModel)],e.prototype,"pinnedRowModel",void 0),i([y.Autowired("context"),n("design:type",y.Context)],e.prototype,"context",void 0),i([y.Autowired("rowModel"),n("design:type",Object)],e.prototype,"rowModel",void 0),i([y.Autowired("sortController"),n("design:type",m.SortController)],e.prototype,"sortController",void 0),i([y.Autowired("paginationProxy"),n("design:type",O.PaginationProxy)],e.prototype,"paginationProxy",void 0),i([y.Autowired("focusedCellController"),n("design:type",C.FocusedCellController)],e.prototype,"focusedCellController",void 0),i([y.Optional("rangeController"),n("design:type",Object)],e.prototype,"rangeController",void 0),i([y.Optional("clipboardService"),n("design:type",Object)],e.prototype,"clipboardService",void 0),i([y.Optional("aggFuncService"),n("design:type",Object)],e.prototype,"aggFuncService",void 0),i([y.Autowired("menuFactory"),n("design:type",Object)],e.prototype,"menuFactory",void 0),i([y.Autowired("cellRendererFactory"),n("design:type",R.CellRendererFactory)],e.prototype,"cellRendererFactory",void 0),i([y.Autowired("cellEditorFactory"),n("design:type",_.CellEditorFactory)],e.prototype,"cellEditorFactory",void 0),i([y.Autowired("valueCache"),n("design:type",S.ValueCache)],e.prototype,"valueCache",void 0),i([y.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),e=i([y.Bean("gridApi")],e)}();t.GridApi=D},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),n=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=o(7),a=o(14),l=o(106),p=o(15),u=o(31),c=o(4),d=o(9),h=o(8),f="\r\n",g=function(e){function t(t,o,i,n,r,s,a){var l=e.call(this,t,o,i,n,r)||this;return l.suppressQuotes=s,l.columnSeparator=a,l.result="",l.lineOpened=!1,l}return i(t,e),t.prototype.prepare=function(e){},t.prototype.addCustomHeader=function(e){e&&(this.result+=e+f)},t.prototype.addCustomFooter=function(e){e&&(this.result+=e+f)},t.prototype.onNewHeaderGroupingRow=function(){return this.lineOpened&&(this.result+=f),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}},t.prototype.onNewHeaderGroupingRowColumn=function(e,t,o){0!=t&&(this.result+=this.columnSeparator),this.result+=e;for(var i=1;i<=o;i++)this.result+=this.columnSeparator+this.putInQuotes("",this.suppressQuotes);this.lineOpened=!0},t.prototype.onNewHeaderRow=function(){return this.lineOpened&&(this.result+=f),{onColumn:this.onNewHeaderRowColumn.bind(this)}},t.prototype.onNewHeaderRowColumn=function(e,t,o){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(e),this.suppressQuotes),this.lineOpened=!0},t.prototype.onNewBodyRow=function(){return this.lineOpened&&(this.result+=f),{onColumn:this.onNewBodyRowColumn.bind(this)}},t.prototype.onNewBodyRowColumn=function(e,t,o){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractRowCellValue(e,t,d.Constants.EXPORT_TYPE_CSV,o),this.suppressQuotes),this.lineOpened=!0},t.prototype.putInQuotes=function(e,t){if(t)return e;if(null===e||void 0===e)return'""';var o;return"string"==typeof e?o=e:"function"==typeof e.toString?o=e.toString():(console.warn("unknown value type during csv conversion"),o=""),'"'+o.replace(/"/g,'""')+'"'},t.prototype.parse=function(){return this.result},t}(a.BaseGridSerializingSession);t.CsvSerializingSession=g;var y=function(){function e(){}return e.prototype.export=function(e){if(this.isExportSuppressed())return console.warn("ag-grid: Export canceled. Export is not allowed as per your configuration."),"";var t=this.getMergedParamsAndData(e),o=t.mergedParams,i=t.data,n=o&&o.fileName&&0!==o.fileName.length,r=n?o.fileName:this.getDefaultFileName();return-1===r.indexOf(".")&&(r=r+"."+this.getDefaultFileExtension()),this.downloader.download(r,i,this.getMimeType()),i},e.prototype.getData=function(e){return this.getMergedParamsAndData(e).data},e.prototype.getMergedParamsAndData=function(e){var t=this.mergeDefaultParams(e);return{mergedParams:t,data:this.gridSerializer.serialize(this.createSerializingSession(t),t)}},e.prototype.mergeDefaultParams=function(e){var t=this.gridOptionsWrapper.getDefaultExportParams(),o={};return h._.assign(o,t),h._.assign(o,e),o},n([s.Autowired("downloader"),r("design:type",l.Downloader)],e.prototype,"downloader",void 0),n([s.Autowired("gridSerializer"),r("design:type",a.GridSerializer)],e.prototype,"gridSerializer",void 0),n([s.Autowired("gridOptionsWrapper"),r("design:type",c.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),e}();t.BaseCreator=y;var CsvCreator=function(e){function CsvCreator(){return null!==e&&e.apply(this,arguments)||this}return i(CsvCreator,e),CsvCreator.prototype.exportDataAsCsv=function(e){return this.export(e)},CsvCreator.prototype.getDataAsCsv=function(e){return this.getData(e)},CsvCreator.prototype.getMimeType=function(){return"text/csv;charset=utf-8;"},CsvCreator.prototype.getDefaultFileName=function(){return"export.csv"},CsvCreator.prototype.getDefaultFileExtension=function(){return"csv"},CsvCreator.prototype.createSerializingSession=function(e){return new g(this.columnController,this.valueService,this.gridOptionsWrapper,e?e.processCellCallback:null,e?e.processHeaderCallback:null,e&&e.suppressQuotes,e&&e.columnSeparator||",")},CsvCreator.prototype.isExportSuppressed=function(){return this.gridOptionsWrapper.isSuppressCsvExport()},n([s.Autowired("columnController"),r("design:type",p.ColumnController)],CsvCreator.prototype,"columnController",void 0),n([s.Autowired("valueService"),r("design:type",u.ValueService)],CsvCreator.prototype,"valueService",void 0),CsvCreator=n([s.Bean("csvCreator")],CsvCreator)}(y);t.CsvCreator=CsvCreator},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(7),s=o(15),a=o(9),l=o(8),p=o(27),u=o(4),c=o(21),d=o(3),h=o(104),f=o(16),g=o(44),y=function(){function e(e,t,o,i,n,r){this.columnController=e,this.valueService=t,this.gridOptionsWrapper=o,this.processCellCallback=i,this.processHeaderCallback=n,this.cellAndHeaderEscaper=r}return e.prototype.extractHeaderValue=function(e){var t=this.getHeaderName(this.processHeaderCallback,e);return null!==t&&void 0!==t||(t=""),this.cellAndHeaderEscaper?this.cellAndHeaderEscaper(t):t},e.prototype.extractRowCellValue=function(e,t,o,i){var n,r=this.columnController.getRowGroupColumns().length>0;return n=i.group&&r&&0===t?this.createValueForGroupNode(i):this.valueService.getValue(e,i),n=this.processCell(i,e,n,this.processCellCallback,o),null!==n&&void 0!==n||(n=""),this.cellAndHeaderEscaper?this.cellAndHeaderEscaper(n):n},e.prototype.getHeaderName=function(e,t){return e?e({column:t,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}):this.columnController.getDisplayNameForColumn(t,"csv",!0)},e.prototype.createValueForGroupNode=function(e){for(var t=[e.key];e.parent;)e=e.parent,t.push(e.key);return t.reverse().join(" -> ")},e.prototype.processCell=function(e,t,o,i,n){return i?i({column:t,node:e,value:o,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),type:n}):o},e}();t.BaseGridSerializingSession=y;var v=function(){function e(){}return e.prototype.serialize=function(e,t){function o(t){if((!r||!t.group)&&(!u||!t.footer)&&(!v||t.isSelected())&&!(c&&"top"===t.rowPinned||d&&"bottom"===t.rowPinned)){if(!(-1===t.level)||t.leafGroup){if(!E({node:t,api:w,context:R})){var o=e.onNewBodyRow();i.forEach(function(e,i){o.onColumn(e,i,t)})}}}}var i,n=function(){return!1},r=t&&t.skipGroups,s=t&&t.skipHeader,p=t&&t.columnGroups,u=t&&t.skipFooters,c=t&&t.skipPinnedTop,d=t&&t.skipPinnedBottom,f=t&&t.customHeader,g=t&&t.customFooter,y=t&&t.allColumns,v=t&&t.onlySelected,m=t&&t.columnKeys,C=t&&t.onlySelectedAllPages,E=t&&t.shouldRowBeSkipped||n,w=this.gridOptionsWrapper.getApi(),R=this.gridOptionsWrapper.getContext(),_=this.columnController.isPivotMode(),O=this.rowModel.getType()===a.Constants.ROW_MODEL_TYPE_IN_MEMORY,A=!O&&v;if(!(i=l.Utils.existsAndNotEmpty(m)?this.columnController.getGridColumns(m):y&&!_?this.columnController.getAllPrimaryColumns():this.columnController.getAllDisplayedColumns())||0===i.length)return"";if(e.prepare(i),f&&e.addCustomHeader(t.customHeader),p){var S=new h.GroupInstanceIdCreator,b=this.displayedGroupCreator.createDisplayedGroups(i,this.columnController.getGridBalancedTree(),S);this.recursivelyAddHeaderGroups(b,e)}if(!s){var P=e.onNewHeaderRow();i.forEach(function(e,t){P.onColumn(e,t,null)})}if(this.pinnedRowModel.forEachPinnedTopRow(o),_)this.rowModel.forEachPivotNode(o);else if(C||A){var D=this.selectionController.getSelectedNodes();D.forEach(function(e){o(e)})}else O?this.rowModel.forEachNodeAfterFilterAndSort(o):this.rowModel.forEachNode(o);return this.pinnedRowModel.forEachPinnedBottomRow(o),g&&e.addCustomFooter(t.customFooter),e.parse()},e.prototype.recursivelyAddHeaderGroups=function(e,t){var o=[];e.forEach(function(e){var t=e;t.getChildren&&t.getChildren().forEach(function(e){return o.push(e)})}),e.length>0&&e[0]instanceof f.ColumnGroup&&this.doAddHeaderHeader(t,e),o&&o.length>0&&this.recursivelyAddHeaderGroups(o,t)},e.prototype.doAddHeaderHeader=function(e,t){var o=this,i=e.onNewHeaderGroupingRow(),n=0;t.forEach(function(e){var t=e,r=(t.getDefinition(),o.columnController.getDisplayNameForColumnGroup(t,"header"));i.onColumn(r,n++,t.getLeafColumns().length-1)})},i([r.Autowired("displayedGroupCreator"),n("design:type",c.DisplayedGroupCreator)],e.prototype,"displayedGroupCreator",void 0),i([r.Autowired("columnController"),n("design:type",s.ColumnController)],e.prototype,"columnController",void 0),i([r.Autowired("rowModel"),n("design:type",Object)],e.prototype,"rowModel",void 0),i([r.Autowired("pinnedRowModel"),n("design:type",g.PinnedRowModel)],e.prototype,"pinnedRowModel",void 0),i([r.Autowired("selectionController"),n("design:type",p.SelectionController)],e.prototype,"selectionController",void 0),i([r.Autowired("balancedColumnTreeBuilder"),n("design:type",d.BalancedColumnTreeBuilder)],e.prototype,"balancedColumnTreeBuilder",void 0),i([r.Autowired("gridOptionsWrapper"),n("design:type",u.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),e=i([r.Bean("gridSerializer")],e)}();t.GridSerializer=v;!function(e){e[e.HEADER_GROUPING=0]="HEADER_GROUPING",e[e.HEADER=1]="HEADER",e[e.BODY=2]="BODY"}(t.RowType||(t.RowType={}))},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(o,i){t(o,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(8),a=o(16),l=o(17),p=o(4),u=o(20),c=o(3),d=o(21),h=o(22),f=o(5),g=o(18),y=o(6),v=o(11),m=o(19),C=o(104),E=o(7),w=o(24),R=o(69),_=o(105),O=o(32),A=o(12),S=function(){function e(){}return e.prototype.sizeColumnsToFit=function(e){this._columnController.sizeColumnsToFit(e)},e.prototype.setColumnGroupOpened=function(e,t){this._columnController.setColumnGroupOpened(e,t)},e.prototype.getColumnGroup=function(e,t){return this._columnController.getColumnGroup(e,t)},e.prototype.getOriginalColumnGroup=function(e){return this._columnController.getOriginalColumnGroup(e)},e.prototype.getDisplayNameForColumn=function(e,t){return this._columnController.getDisplayNameForColumn(e,t)},e.prototype.getDisplayNameForColumnGroup=function(e,t){return this._columnController.getDisplayNameForColumnGroup(e,t)},e.prototype.getColumn=function(e){return this._columnController.getPrimaryColumn(e)},e.prototype.setColumnState=function(e){return this._columnController.setColumnState(e)},e.prototype.getColumnState=function(){return this._columnController.getColumnState()},e.prototype.resetColumnState=function(){this._columnController.resetColumnState()},e.prototype.getColumnGroupState=function(){return this._columnController.getColumnGroupState()},e.prototype.setColumnGroupState=function(e){this._columnController.setColumnGroupState(e)},e.prototype.resetColumnGroupState=function(){this._columnController.resetColumnGroupState()},e.prototype.isPinning=function(){return this._columnController.isPinningLeft()||this._columnController.isPinningRight()},e.prototype.isPinningLeft=function(){return this._columnController.isPinningLeft()},e.prototype.isPinningRight=function(){return this._columnController.isPinningRight()},e.prototype.getDisplayedColAfter=function(e){return this._columnController.getDisplayedColAfter(e)},e.prototype.getDisplayedColBefore=function(e){return this._columnController.getDisplayedColBefore(e)},e.prototype.setColumnVisible=function(e,t){this._columnController.setColumnVisible(e,t)},e.prototype.setColumnsVisible=function(e,t){this._columnController.setColumnsVisible(e,t)},e.prototype.setColumnPinned=function(e,t){this._columnController.setColumnPinned(e,t)},e.prototype.setColumnsPinned=function(e,t){this._columnController.setColumnsPinned(e,t)},e.prototype.getAllColumns=function(){return this._columnController.getAllPrimaryColumns()},e.prototype.getAllGridColumns=function(){return this._columnController.getAllGridColumns()},e.prototype.getDisplayedLeftColumns=function(){return this._columnController.getDisplayedLeftColumns()},e.prototype.getDisplayedCenterColumns=function(){return this._columnController.getDisplayedCenterColumns()},e.prototype.getDisplayedRightColumns=function(){return this._columnController.getDisplayedRightColumns()},e.prototype.getAllDisplayedColumns=function(){return this._columnController.getAllDisplayedColumns()},e.prototype.getAllDisplayedVirtualColumns=function(){return this._columnController.getAllDisplayedVirtualColumns()},e.prototype.moveColumn=function(e,t){"number"==typeof e?(console.log("ag-Grid: you are using moveColumn(fromIndex, toIndex) - moveColumn takes a column key and a destination index, not two indexes, to move with indexes use moveColumnByIndex(from,to) instead"),this._columnController.moveColumnByIndex(e,t)):this._columnController.moveColumn(e,t)},e.prototype.moveColumnByIndex=function(e,t){this._columnController.moveColumnByIndex(e,t)},e.prototype.moveColumns=function(e,t){this._columnController.moveColumns(e,t)},e.prototype.moveRowGroupColumn=function(e,t){this._columnController.moveRowGroupColumn(e,t)},e.prototype.setColumnAggFunc=function(e,t){this._columnController.setColumnAggFunc(e,t)},e.prototype.setColumnWidth=function(e,t,o){void 0===o&&(o=!0),this._columnController.setColumnWidth(e,t,o)},e.prototype.setPivotMode=function(e){this._columnController.setPivotMode(e)},e.prototype.isPivotMode=function(){return this._columnController.isPivotMode()},e.prototype.getSecondaryPivotColumn=function(e,t){return this._columnController.getSecondaryPivotColumn(e,t)},e.prototype.setValueColumns=function(e){this._columnController.setValueColumns(e)},e.prototype.getValueColumns=function(){return this._columnController.getValueColumns()},e.prototype.removeValueColumn=function(e){this._columnController.removeValueColumn(e)},e.prototype.removeValueColumns=function(e){this._columnController.removeValueColumns(e)},e.prototype.addValueColumn=function(e){this._columnController.addValueColumn(e)},e.prototype.addValueColumns=function(e){this._columnController.addValueColumns(e)},e.prototype.setRowGroupColumns=function(e){this._columnController.setRowGroupColumns(e)},e.prototype.removeRowGroupColumn=function(e){this._columnController.removeRowGroupColumn(e)},e.prototype.removeRowGroupColumns=function(e){this._columnController.removeRowGroupColumns(e)},e.prototype.addRowGroupColumn=function(e){this._columnController.addRowGroupColumn(e)},e.prototype.addRowGroupColumns=function(e){this._columnController.addRowGroupColumns(e)},e.prototype.getRowGroupColumns=function(){return this._columnController.getRowGroupColumns()},e.prototype.setPivotColumns=function(e){this._columnController.setPivotColumns(e)},e.prototype.removePivotColumn=function(e){this._columnController.removePivotColumn(e)},e.prototype.removePivotColumns=function(e){this._columnController.removePivotColumns(e)},e.prototype.addPivotColumn=function(e){this._columnController.addPivotColumn(e)},e.prototype.addPivotColumns=function(e){this._columnController.addPivotColumns(e)},e.prototype.getPivotColumns=function(){return this._columnController.getPivotColumns()},e.prototype.getLeftDisplayedColumnGroups=function(){return this._columnController.getLeftDisplayedColumnGroups()},e.prototype.getCenterDisplayedColumnGroups=function(){return this._columnController.getCenterDisplayedColumnGroups()},e.prototype.getRightDisplayedColumnGroups=function(){return this._columnController.getRightDisplayedColumnGroups()},e.prototype.getAllDisplayedColumnGroups=function(){return this._columnController.getAllDisplayedColumnGroups()},e.prototype.autoSizeColumn=function(e){return this._columnController.autoSizeColumn(e)},e.prototype.autoSizeColumns=function(e){return this._columnController.autoSizeColumns(e)},e.prototype.autoSizeAllColumns=function(){this._columnController.autoSizeAllColumns()},e.prototype.setSecondaryColumns=function(e){this._columnController.setSecondaryColumns(e)},e.prototype.columnGroupOpened=function(e,t){console.error("ag-Grid: columnGroupOpened no longer exists, use setColumnGroupOpened"),this.setColumnGroupOpened(e,t)},e.prototype.hideColumns=function(e,t){console.error("ag-Grid: hideColumns is deprecated, use setColumnsVisible"),this._columnController.setColumnsVisible(e,!t)},e.prototype.hideColumn=function(e,t){console.error("ag-Grid: hideColumn is deprecated, use setColumnVisible"),this._columnController.setColumnVisible(e,!t)},e.prototype.setState=function(e){return console.error("ag-Grid: setState is deprecated, use setColumnState"),this.setColumnState(e)},e.prototype.getState=function(){return console.error("ag-Grid: getState is deprecated, use getColumnState"),this.getColumnState()},e.prototype.resetState=function(){console.error("ag-Grid: resetState is deprecated, use resetColumnState"),this.resetColumnState()},e.prototype.getAggregationColumns=function(){return console.error("ag-Grid: getAggregationColumns is deprecated, use getValueColumns"),this._columnController.getValueColumns()},e.prototype.removeAggregationColumn=function(e){console.error("ag-Grid: removeAggregationColumn is deprecated, use removeValueColumn"),this._columnController.removeValueColumn(e)},e.prototype.removeAggregationColumns=function(e){console.error("ag-Grid: removeAggregationColumns is deprecated, use removeValueColumns"),this._columnController.removeValueColumns(e)},e.prototype.addAggregationColumn=function(e){console.error("ag-Grid: addAggregationColumn is deprecated, use addValueColumn"),this._columnController.addValueColumn(e)},e.prototype.addAggregationColumns=function(e){console.error("ag-Grid: addAggregationColumns is deprecated, use addValueColumns"),this._columnController.addValueColumns(e)},e.prototype.setColumnAggFunction=function(e,t){console.error("ag-Grid: setColumnAggFunction is deprecated, use setColumnAggFunc"),this._columnController.setColumnAggFunc(e,t)},e.prototype.getDisplayNameForCol=function(e){return console.error("ag-Grid: getDisplayNameForCol is deprecated, use getDisplayNameForColumn"),this.getDisplayNameForColumn(e,null)},i([E.Autowired("columnController"),n("design:type",b)],e.prototype,"_columnController",void 0),e=i([E.Bean("columnApi")],e)}();t.ColumnApi=S;var b=function(){function e(){this.primaryHeaderRowCount=0,this.secondaryHeaderRowCount=0,this.secondaryColumnsPresent=!1,this.gridHeaderRowCount=0,this.displayedLeftColumns=[],this.displayedRightColumns=[],this.displayedCenterColumns=[],this.allDisplayedColumns=[],this.allDisplayedVirtualColumns=[],this.allDisplayedCenterVirtualColumns=[],this.rowGroupColumns=[],this.valueColumns=[],this.pivotColumns=[],this.ready=!1,this.autoGroupsNeedBuilding=!1,this.pivotMode=!1,this.bodyWidth=0,this.leftWidth=0,this.rightWidth=0,this.bodyWidthDirty=!0}return e.prototype.init=function(){this.pivotMode=this.gridOptionsWrapper.isPivotMode()},e.prototype.setVirtualViewportLeftAndRight=function(){this.gridOptionsWrapper.isEnableRtl()?(this.viewportLeft=this.bodyWidth-this.scrollPosition-this.scrollWidth,this.viewportRight=this.bodyWidth-this.scrollPosition):(this.viewportLeft=this.scrollPosition,this.viewportRight=this.scrollWidth+this.scrollPosition)},e.prototype.getDisplayedColumnsStartingAt=function(e){for(var t=e,o=[];s.Utils.exists(t);)o.push(t),t=this.getDisplayedColAfter(t);return o},e.prototype.checkDisplayedVirtualColumns=function(){if(s.Utils.exists(this.displayedCenterColumns)){var e=this.allDisplayedVirtualColumns.map(function(e){return e.getId()}).join("#");this.updateVirtualSets();if(e!==this.allDisplayedVirtualColumns.map(function(e){return e.getId()}).join("#")){var t={type:v.Events.EVENT_VIRTUAL_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}}},e.prototype.setVirtualViewportPosition=function(e,t){(e!==this.scrollWidth||t!==this.scrollPosition||this.bodyWidthDirty)&&(this.scrollWidth=e,this.scrollPosition=t,this.bodyWidthDirty=!0,this.setVirtualViewportLeftAndRight(),this.ready&&this.checkDisplayedVirtualColumns())},e.prototype.isPivotMode=function(){return this.pivotMode},e.prototype.setPivotMode=function(e){if(e!==this.pivotMode){this.pivotMode=e,this.updateDisplayedColumns();var t={type:v.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}},e.prototype.getSecondaryPivotColumn=function(e,t){if(!this.secondaryColumnsPresent)return null;var o=this.getPrimaryColumn(t),i=null;return this.secondaryColumns.forEach(function(t){var n=t.getColDef().pivotKeys,r=t.getColDef().pivotValueColumn,a=s.Utils.compareArrays(n,e),l=r===o;a&&l&&(i=t)}),i},e.prototype.setBeans=function(e){this.logger=e.create("ColumnController")},e.prototype.setFirstRightAndLastLeftPinned=function(){var e,t;this.gridOptionsWrapper.isEnableRtl()?(e=this.displayedLeftColumns?this.displayedLeftColumns[0]:null,t=this.displayedRightColumns?this.displayedRightColumns[this.displayedRightColumns.length-1]:null):(e=this.displayedLeftColumns?this.displayedLeftColumns[this.displayedLeftColumns.length-1]:null,t=this.displayedRightColumns?this.displayedRightColumns[0]:null),this.gridColumns.forEach(function(o){o.setLastLeftPinned(o===e),o.setFirstRightPinned(o===t)})},e.prototype.autoSizeColumns=function(e){for(var t=this,o=[],i=-1;0!==i;)i=0,this.actionOnGridColumns(e,function(e){if(!(o.indexOf(e)>=0)){var n=t.autoWidthCalculator.getPreferredWidthForColumn(e);if(n>0){var r=t.normaliseColumnWidth(e,n);e.setActualWidth(r),o.push(e),i++}return!0}});if(o.length>0){var n={type:v.Events.EVENT_COLUMN_RESIZED,columns:o,column:1===o.length?o[0]:null,finished:!0,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(n)}},e.prototype.autoSizeColumn=function(e){this.autoSizeColumns([e])},e.prototype.autoSizeAllColumns=function(){var e=this.getAllDisplayedColumns();this.autoSizeColumns(e)},e.prototype.getColumnsFromTree=function(e){function t(e){for(var i=0;i<e.length;i++){var n=e[i];n instanceof l.Column?o.push(n):n instanceof m.OriginalColumnGroup&&t(n.getChildren())}}var o=[];return t(e),o},e.prototype.getAllDisplayedColumnGroups=function(){return this.displayedLeftColumnTree&&this.displayedRightColumnTree&&this.displayedCentreColumnTree?this.displayedLeftColumnTree.concat(this.displayedCentreColumnTree).concat(this.displayedRightColumnTree):null},e.prototype.getPrimaryColumnTree=function(){return this.primaryBalancedTree},e.prototype.getHeaderRowCount=function(){return this.gridHeaderRowCount},e.prototype.getLeftDisplayedColumnGroups=function(){return this.displayedLeftColumnTree},e.prototype.getRightDisplayedColumnGroups=function(){return this.displayedRightColumnTree},e.prototype.getCenterDisplayedColumnGroups=function(){return this.displayedCentreColumnTree},e.prototype.getDisplayedColumnGroups=function(e){switch(e){case l.Column.PINNED_LEFT:return this.getLeftDisplayedColumnGroups();case l.Column.PINNED_RIGHT:return this.getRightDisplayedColumnGroups();default:return this.getCenterDisplayedColumnGroups()}},e.prototype.isColumnDisplayed=function(e){return this.getAllDisplayedColumns().indexOf(e)>=0},e.prototype.getAllDisplayedColumns=function(){return this.allDisplayedColumns},e.prototype.getAllDisplayedVirtualColumns=function(){return this.allDisplayedVirtualColumns},e.prototype.getDisplayedLeftColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedLeftColumns):this.displayedLeftColumns},e.prototype.getDisplayedRightColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedRightColumns):this.displayedRightColumns},e.prototype.getDisplayedColumnsForRow=function(e,t,o,i){for(var n=[],r=null,s=0;s<t.length;s++){var a=t[s],l=a.getColSpan(e);if(l>1){s+=l-1}if(!o||o(a)){var p=!!i&&i(a);0===n.length&&p&&r&&n.push(r),n.push(a)}r=a}return n},e.prototype.getAllDisplayedCenterVirtualColumnsForRow=function(e){var t=this;if(!this.colSpanActive)return this.allDisplayedCenterVirtualColumns;var o=function(e){return e.getLeft()>t.viewportLeft};return this.getDisplayedColumnsForRow(e,this.displayedCenterColumns,this.isColumnInViewport.bind(this),o)},e.prototype.isColumnInViewport=function(e){var t=e.getLeft(),o=e.getLeft()+e.getActualWidth(),i=t<this.viewportLeft&&o<this.viewportLeft,n=t>this.viewportRight&&o>this.viewportRight;return!i&&!n},e.prototype.getPinnedLeftContainerWidth=function(){return this.getWidthOfColsInList(this.displayedLeftColumns)},e.prototype.getPinnedRightContainerWidth=function(){return this.getWidthOfColsInList(this.displayedRightColumns)},e.prototype.updatePrimaryColumnList=function(e,t,o,i,n){var r=this;if(!s.Utils.missingOrEmpty(e)){var a=!1;if(e.forEach(function(e){var n=r.getPrimaryColumn(e);if(n){if(o){if(t.indexOf(n)>=0)return;t.push(n)}else{if(t.indexOf(n)<0)return;s.Utils.removeFromArray(t,n)}i(n),a=!0}}),a){this.updateDisplayedColumns();var l={type:n,columns:t,column:1===t.length?t[0]:null,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(l)}}},e.prototype.setRowGroupColumns=function(e){this.autoGroupsNeedBuilding=!0,this.setPrimaryColumnList(e,this.rowGroupColumns,v.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,this.setRowGroupActive.bind(this))},e.prototype.setRowGroupActive=function(e,t){e!==t.isRowGroupActive()&&(t.setRowGroupActive(e),e||t.setVisible(!0))},e.prototype.addRowGroupColumn=function(e){this.addRowGroupColumns([e])},e.prototype.addRowGroupColumns=function(e){this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!0,this.setRowGroupActive.bind(this,!0),v.Events.EVENT_COLUMN_ROW_GROUP_CHANGED)},e.prototype.removeRowGroupColumns=function(e){this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!1,this.setRowGroupActive.bind(this,!1),v.Events.EVENT_COLUMN_ROW_GROUP_CHANGED)},e.prototype.removeRowGroupColumn=function(e){this.removeRowGroupColumns([e])},e.prototype.addPivotColumns=function(e){this.updatePrimaryColumnList(e,this.pivotColumns,!0,function(e){return e.setPivotActive(!0)},v.Events.EVENT_COLUMN_PIVOT_CHANGED)},e.prototype.setPivotColumns=function(e){this.setPrimaryColumnList(e,this.pivotColumns,v.Events.EVENT_COLUMN_PIVOT_CHANGED,function(e,t){t.setPivotActive(e)})},e.prototype.addPivotColumn=function(e){this.addPivotColumns([e])},e.prototype.removePivotColumns=function(e){this.updatePrimaryColumnList(e,this.pivotColumns,!1,function(e){return e.setPivotActive(!1)},v.Events.EVENT_COLUMN_PIVOT_CHANGED)},e.prototype.removePivotColumn=function(e){this.removePivotColumns([e])},e.prototype.setPrimaryColumnList=function(e,t,o,i){var n=this;t.length=0,s.Utils.exists(e)&&e.forEach(function(e){var o=n.getPrimaryColumn(e);t.push(o)}),this.primaryColumns.forEach(function(e){var o=t.indexOf(e)>=0;i(o,e)}),this.updateDisplayedColumns();var r={type:o,columns:t,column:1===t.length?t[0]:null,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(r)},e.prototype.setValueColumns=function(e){this.setPrimaryColumnList(e,this.valueColumns,v.Events.EVENT_COLUMN_VALUE_CHANGED,this.setValueActive.bind(this))},e.prototype.setValueActive=function(e,t){if(e!==t.isValueActive()&&(t.setValueActive(e),e&&!t.getAggFunc())){var o=this.aggFuncService.getDefaultAggFunc(t);t.setAggFunc(o)}},e.prototype.addValueColumns=function(e){this.updatePrimaryColumnList(e,this.valueColumns,!0,this.setValueActive.bind(this,!0),v.Events.EVENT_COLUMN_VALUE_CHANGED)},e.prototype.addValueColumn=function(e){this.addValueColumns([e])},e.prototype.removeValueColumn=function(e){this.removeValueColumns([e])},e.prototype.removeValueColumns=function(e){this.updatePrimaryColumnList(e,this.valueColumns,!1,this.setValueActive.bind(this,!1),v.Events.EVENT_COLUMN_VALUE_CHANGED)},e.prototype.normaliseColumnWidth=function(e,t){return t<e.getMinWidth()&&(t=e.getMinWidth()),e.isGreaterThanMax(t)&&(t=e.getMaxWidth()),t},e.prototype.getPrimaryOrGridColumn=function(e){var t=this.getPrimaryColumn(e);return t||this.getGridColumn(e)},e.prototype.setColumnWidth=function(e,t,o){var i=this.getPrimaryOrGridColumn(e);if(i){t=this.normaliseColumnWidth(i,t);var n=i.getActualWidth()!==t;if(n&&(i.setActualWidth(t),this.setLeftValues()),this.updateBodyWidths(),this.checkDisplayedVirtualColumns(),o||n){var r={type:v.Events.EVENT_COLUMN_RESIZED,columns:[i],column:i,finished:o,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(r)}}},e.prototype.setColumnAggFunc=function(e,t){e.setAggFunc(t);var o={type:v.Events.EVENT_COLUMN_VALUE_CHANGED,columns:[e],column:e,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o)},e.prototype.moveRowGroupColumn=function(e,t){var o=this.rowGroupColumns[e];this.rowGroupColumns.splice(e,1),this.rowGroupColumns.splice(t,0,o);var i={type:v.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,columns:this.rowGroupColumns,column:1===this.rowGroupColumns.length?this.rowGroupColumns[0]:null,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(i)},e.prototype.moveColumns=function(e,t){if(this.columnAnimationService.start(),t>this.gridColumns.length-e.length)return console.warn("ag-Grid: tried to insert columns in invalid location, toIndex = "+t),void console.warn("ag-Grid: remember that you should not count the moving columns when calculating the new index");var o=this.getGridColumns(e);if(this.doesMovePassRules(o,t)){s.Utils.moveInArray(this.gridColumns,o,t),this.updateDisplayedColumns();var i={type:v.Events.EVENT_COLUMN_MOVED,columns:o,column:1===o.length?o[0]:null,toIndex:t,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(i),this.columnAnimationService.finish()}},e.prototype.doesMovePassRules=function(e,t){var o=this.gridColumns.slice();s.Utils.moveInArray(o,e,t);var i=!0;return this.columnUtils.depthFirstOriginalTreeSearch(this.gridBalancedTree,function(e){if(e instanceof m.OriginalColumnGroup){var t=e;if(t.getColGroupDef()&&t.getColGroupDef().marryChildren){var n=[];t.getLeafColumns().forEach(function(e){var t=o.indexOf(e);n.push(t)});Math.max.apply(Math,n)-Math.min.apply(Math,n)>t.getLeafColumns().length-1&&(i=!1)}}}),i},e.prototype.moveColumn=function(e,t){this.moveColumns([e],t)},e.prototype.moveColumnByIndex=function(e,t){var o=this.gridColumns[e];this.moveColumn(o,t)},e.prototype.getBodyContainerWidth=function(){return this.bodyWidth},e.prototype.getContainerWidth=function(e){switch(e){case l.Column.PINNED_LEFT:return this.leftWidth;case l.Column.PINNED_RIGHT:return this.rightWidth;default:return this.bodyWidth}},e.prototype.updateBodyWidths=function(){var e=this.getWidthOfColsInList(this.displayedCenterColumns),t=this.getWidthOfColsInList(this.displayedLeftColumns),o=this.getWidthOfColsInList(this.displayedRightColumns);if(this.bodyWidthDirty=this.bodyWidth!==e,this.bodyWidth!==e||this.leftWidth!==t||this.rightWidth!==o){this.bodyWidth=e,this.leftWidth=t,this.rightWidth=o;var i={type:v.Events.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(i)}},e.prototype.getValueColumns=function(){return this.valueColumns?this.valueColumns:[]},e.prototype.getPivotColumns=function(){return this.pivotColumns?this.pivotColumns:[]},e.prototype.isPivotActive=function(){return this.pivotColumns&&this.pivotColumns.length>0&&this.pivotMode},e.prototype.getRowGroupColumns=function(){return this.rowGroupColumns?this.rowGroupColumns:[]},e.prototype.getDisplayedCenterColumns=function(){return this.displayedCenterColumns},e.prototype.getDisplayedLeftColumns=function(){return this.displayedLeftColumns},e.prototype.getDisplayedRightColumns=function(){return this.displayedRightColumns},e.prototype.getDisplayedColumns=function(e){switch(e){case l.Column.PINNED_LEFT:return this.getDisplayedLeftColumns();case l.Column.PINNED_RIGHT:return this.getDisplayedRightColumns();default:return this.getDisplayedCenterColumns()}},e.prototype.getAllPrimaryColumns=function(){return this.primaryColumns},e.prototype.getAllGridColumns=function(){return this.gridColumns},e.prototype.isEmpty=function(){return s.Utils.missingOrEmpty(this.gridColumns)},e.prototype.isRowGroupEmpty=function(){return s.Utils.missingOrEmpty(this.rowGroupColumns)},e.prototype.setColumnVisible=function(e,t){this.setColumnsVisible([e],t)},e.prototype.setColumnsVisible=function(e,t){var o=this;this.columnAnimationService.start(),this.actionOnGridColumns(e,function(e){return e.setVisible(t),!0},function(){return{type:v.Events.EVENT_COLUMN_VISIBLE,visible:t,column:null,columns:null,api:o.gridApi,columnApi:o.columnApi}}),this.columnAnimationService.finish()},e.prototype.setColumnPinned=function(e,t){this.setColumnsPinned([e],t)},e.prototype.setColumnsPinned=function(e,t){var o=this;this.columnAnimationService.start();var i;i=!0===t||t===l.Column.PINNED_LEFT?l.Column.PINNED_LEFT:t===l.Column.PINNED_RIGHT?l.Column.PINNED_RIGHT:null,this.actionOnGridColumns(e,function(e){return e.setPinned(i),!0},function(){return{type:v.Events.EVENT_COLUMN_PINNED,pinned:i,column:null,columns:null,api:o.gridApi,columnApi:o.columnApi}}),this.columnAnimationService.finish()},e.prototype.actionOnGridColumns=function(e,t,o){var i=this;if(!s.Utils.missingOrEmpty(e)){var n=[];if(e.forEach(function(e){var o=i.getGridColumn(e);if(o){!1!==t(o)&&n.push(o)}}),0!==n.length&&(this.updateDisplayedColumns(),s.Utils.exists(o))){var r=o();r.columns=n,r.column=1===n.length?n[0]:null,this.eventService.dispatchEvent(r)}}},e.prototype.getDisplayedColBefore=function(e){var t=this.getAllDisplayedColumns(),o=t.indexOf(e);return o>0?t[o-1]:null},e.prototype.getDisplayedColAfter=function(e){var t=this.getAllDisplayedColumns(),o=t.indexOf(e);return o<t.length-1?t[o+1]:null},e.prototype.isPinningLeft=function(){return this.displayedLeftColumns.length>0},e.prototype.isPinningRight=function(){return this.displayedRightColumns.length>0},e.prototype.getPrimaryAndSecondaryAndAutoColumns=function(){var e=this.primaryColumns?this.primaryColumns.slice(0):[];return s.Utils.exists(this.groupAutoColumns)&&this.groupAutoColumns.forEach(function(t){return e.push(t)}),this.secondaryColumnsPresent&&this.secondaryColumns.forEach(function(t){return e.push(t)}),e},e.prototype.createStateItemFromColumn=function(e){var t=e.isRowGroupActive()?this.rowGroupColumns.indexOf(e):null,o=e.isPivotActive()?this.pivotColumns.indexOf(e):null,i=e.isValueActive()?e.getAggFunc():null;return{colId:e.getColId(),hide:!e.isVisible(),aggFunc:i,width:e.getActualWidth(),pivotIndex:o,pinned:e.getPinned(),rowGroupIndex:t}},e.prototype.getColumnState=function(){if(s.Utils.missing(this.primaryColumns))return[];var e=this.primaryColumns.map(this.createStateItemFromColumn.bind(this));return this.pivotMode||this.orderColumnStateList(e),e},e.prototype.orderColumnStateList=function(e){var t=this.gridColumns.map(function(e){return e.getColId()});e.sort(function(e,o){return t.indexOf(e.colId)-t.indexOf(o.colId)})},e.prototype.resetColumnState=function(){var e=this.getColumnsFromTree(this.primaryBalancedTree),t=[];e&&e.forEach(function(e){t.push({colId:e.getColId(),aggFunc:e.getColDef().aggFunc,hide:e.getColDef().hide,pinned:e.getColDef().pinned,rowGroupIndex:e.getColDef().rowGroupIndex,pivotIndex:e.getColDef().pivotIndex,width:e.getColDef().width})}),this.setColumnState(t)},e.prototype.setColumnState=function(e){var t=this;if(s.Utils.missingOrEmpty(this.primaryColumns))return!1;this.autoGroupsNeedBuilding=!0;var o=this.primaryColumns.slice();this.rowGroupColumns=[],this.valueColumns=[],this.pivotColumns=[];var i=!0,n={},r={};e&&e.forEach(function(e){var a=t.getPrimaryColumn(e.colId);a?(t.syncColumnWithStateItem(a,e,n,r),s.Utils.removeFromArray(o,a)):(console.warn("ag-grid: column "+e.colId+" not found"),i=!1)}),o.forEach(this.syncColumnWithNoState.bind(this)),this.rowGroupColumns.sort(this.sortColumnListUsingIndexes.bind(this,n)),this.pivotColumns.sort(this.sortColumnListUsingIndexes.bind(this,r)),this.copyDownGridColumns();var a=e.map(function(e){return e.colId});this.gridColumns.sort(function(e,t){return a.indexOf(e.getId())-a.indexOf(t.getId())}),this.updateDisplayedColumns();var l={type:v.Events.EVENT_COLUMN_EVERYTHING_CHANGED,api:this.gridApi,columnApi:this.columnApi};return this.eventService.dispatchEvent(l),i},e.prototype.sortColumnListUsingIndexes=function(e,t,o){return e[t.getId()]-e[o.getId()]},e.prototype.syncColumnWithNoState=function(e){e.setVisible(!1),e.setAggFunc(null),e.setPinned(null),e.setRowGroupActive(!1),e.setPivotActive(!1),e.setValueActive(!1)},e.prototype.syncColumnWithStateItem=function(e,t,o,i){e.setVisible(!t.hide),e.setPinned(t.pinned),t.width>=this.gridOptionsWrapper.getMinColWidth()&&e.setActualWidth(t.width),"string"==typeof t.aggFunc?(e.setAggFunc(t.aggFunc),e.setValueActive(!0),this.valueColumns.push(e)):(s.Utils.exists(t.aggFunc)&&console.warn("ag-Grid: stateItem.aggFunc must be a string. if using your own aggregation functions, register the functions first before using them in get/set state. This is because it isintended for the column state to be stored and retrieved as simple JSON."),e.setAggFunc(null),e.setValueActive(!1)),"number"==typeof t.rowGroupIndex?(this.rowGroupColumns.push(e),e.setRowGroupActive(!0),o[e.getId()]=t.rowGroupIndex):e.setRowGroupActive(!1),"number"==typeof t.pivotIndex?(this.pivotColumns.push(e),e.setPivotActive(!0),i[e.getId()]=t.pivotIndex):e.setPivotActive(!1)},e.prototype.getGridColumns=function(e){return this.getColumns(e,this.getGridColumn.bind(this))},e.prototype.getColumns=function(e,t){var o=[];return e&&e.forEach(function(e){var i=t(e);i&&o.push(i)}),o},e.prototype.getColumnWithValidation=function(e){var t=this.getPrimaryColumn(e);return t||console.warn("ag-Grid: could not find column "+t),t},e.prototype.getPrimaryColumn=function(e){return this.getColumn(e,this.primaryColumns)},e.prototype.getGridColumn=function(e){return this.getColumn(e,this.gridColumns)},e.prototype.getColumn=function(e,t){if(!e)return null;for(var o=0;o<t.length;o++)if(this.columnsMatch(t[o],e))return t[o];return this.getAutoColumn(e)},e.prototype.getAutoColumn=function(e){var t=this;return!s.Utils.exists(this.groupAutoColumns)||s.Utils.missing(this.groupAutoColumns)?null:s.Utils.find(this.groupAutoColumns,function(o){return t.columnsMatch(o,e)})},e.prototype.columnsMatch=function(e,t){var o=e===t,i=e.getColDef()===t,n=e.getColId()==t;return o||i||n},e.prototype.getDisplayNameForColumn=function(e,t,o){void 0===o&&(o=!1);var i=this.getHeaderName(e.getColDef(),e,null,t);return o?this.wrapHeaderNameWithAggFunc(e,i):i},e.prototype.getDisplayNameForColumnGroup=function(e,t){var o=e.getOriginalColumnGroup().getColGroupDef();return o?this.getHeaderName(o,null,e,t):null},e.prototype.getHeaderName=function(e,t,o,i){var n=e.headerValueGetter;if(n){var r={colDef:e,column:t,columnGroup:o,location:i,api:this.gridOptionsWrapper.getApi(),context:this.gridOptionsWrapper.getContext()};return"function"==typeof n?n(r):"string"==typeof n?this.expressionService.evaluate(n,r):(console.warn("ag-grid: headerValueGetter must be a function or a string"),"")}return null!=e.headerName?e.headerName:e.field?s.Utils.camelCaseToHumanText(e.field):""},e.prototype.wrapHeaderNameWithAggFunc=function(e,t){if(this.gridOptionsWrapper.isSuppressAggFuncInHeader())return t;var o,i=e.getColDef().pivotValueColumn,n=s.Utils.exists(i),r=null;if(n)r=i.getAggFunc(),o=!0;else{var a=e.isValueActive(),l=this.pivotMode||!this.isRowGroupEmpty();a&&l?(r=e.getAggFunc(),o=!0):o=!1}if(o){var p="string"==typeof r?r:"func";return this.gridOptionsWrapper.getLocaleTextFunc()(p,p)+"("+t+")"}return t},e.prototype.getColumnGroup=function(e,t){if(!e)return null;if(e instanceof a.ColumnGroup)return e;var o=this.getAllDisplayedColumnGroups(),i="number"==typeof t,n=null;return this.columnUtils.depthFirstAllColumnTreeSearch(o,function(o){if(o instanceof a.ColumnGroup){var r=o,s=void 0;s=i?e===r.getGroupId()&&t===r.getInstanceId():e===r.getGroupId(),s&&(n=r)}}),n},e.prototype.setColumnDefs=function(e){this.valueCache.expire(),this.autoGroupsNeedBuilding=!0;var t=this.balancedColumnTreeBuilder.createBalancedColumnGroups(e,!0);this.primaryBalancedTree=t.balancedTree,this.primaryHeaderRowCount=t.treeDept+1,this.primaryColumns=this.getColumnsFromTree(this.primaryBalancedTree),this.extractRowGroupColumns(),this.extractPivotColumns(),this.createValueColumns(),this.copyDownGridColumns(),this.updateDisplayedColumns(),this.checkDisplayedVirtualColumns(),this.ready=!0;var o={type:v.Events.EVENT_COLUMN_EVERYTHING_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o);var i={type:v.Events.EVENT_NEW_COLUMNS_LOADED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(i)},e.prototype.isReady=function(){return this.ready},e.prototype.extractRowGroupColumns=function(){var e=this;this.rowGroupColumns.forEach(function(e){return e.setRowGroupActive(!1)}),this.rowGroupColumns=[],this.primaryColumns.forEach(function(t){"number"==typeof t.getColDef().rowGroupIndex&&(e.rowGroupColumns.push(t),t.setRowGroupActive(!0))}),this.rowGroupColumns.sort(function(e,t){return e.getColDef().rowGroupIndex-t.getColDef().rowGroupIndex}),this.primaryColumns.forEach(function(t){if(t.getColDef().rowGroup){if(e.rowGroupColumns.indexOf(t)>=0)return;e.rowGroupColumns.push(t),t.setRowGroupActive(!0)}})},e.prototype.extractPivotColumns=function(){var e=this;this.pivotColumns.forEach(function(e){return e.setPivotActive(!1)}),this.pivotColumns=[],this.primaryColumns.forEach(function(t){"number"==typeof t.getColDef().pivotIndex&&(e.pivotColumns.push(t),t.setPivotActive(!0))}),this.pivotColumns.sort(function(e,t){return e.getColDef().pivotIndex-t.getColDef().pivotIndex}),this.primaryColumns.forEach(function(t){if(t.getColDef().pivot){if(e.pivotColumns.indexOf(t)>=0)return;e.pivotColumns.push(t),t.setPivotActive(!0)}})},e.prototype.resetColumnGroupState=function(){var e=[];this.columnUtils.depthFirstOriginalTreeSearch(this.primaryBalancedTree,function(t){if(t instanceof m.OriginalColumnGroup){var o={groupId:t.getGroupId(),open:t.getColGroupDef().openByDefault};e.push(o)}}),this.setColumnGroupState(e)},e.prototype.getColumnGroupState=function(){var e=[];return this.columnUtils.depthFirstOriginalTreeSearch(this.gridBalancedTree,function(t){if(t instanceof m.OriginalColumnGroup){var o=t;e.push({groupId:o.getGroupId(),open:o.isExpanded()})}}),e},e.prototype.setColumnGroupState=function(e){var t=this;this.columnAnimationService.start();var o=[];e.forEach(function(e){var i=e.groupId,n=e.open,r=t.getOriginalColumnGroup(i);r&&r.isExpanded()!==n&&(t.logger.log("columnGroupOpened("+r.getGroupId()+","+n+")"),r.setExpanded(n),o.push(r))}),this.updateGroupsAndDisplayedColumns(),o.forEach(function(e){var o={type:v.Events.EVENT_COLUMN_GROUP_OPENED,columnGroup:e,api:t.gridApi,columnApi:t.columnApi};t.eventService.dispatchEvent(o)}),this.columnAnimationService.finish()},e.prototype.setColumnGroupOpened=function(e,t){var o;o=e instanceof m.OriginalColumnGroup?e.getId():e,this.setColumnGroupState([{groupId:o,open:t}])},e.prototype.getOriginalColumnGroup=function(e){if(e instanceof m.OriginalColumnGroup)return e;"string"!=typeof e&&console.error("ag-Grid: group key must be a string");var t=null;return this.columnUtils.depthFirstOriginalTreeSearch(this.gridBalancedTree,function(o){if(o instanceof m.OriginalColumnGroup){var i=o;i.getId()===e&&(t=i)}}),t},e.prototype.calculateColumnsForDisplay=function(){var e;return e=this.pivotMode&&!this.secondaryColumnsPresent?this.createColumnsToDisplayFromValueColumns():s.Utils.filter(this.gridColumns,function(e){return e.isVisible()}),this.createGroupAutoColumnsIfNeeded(),s.Utils.exists(this.groupAutoColumns)&&(e=this.groupAutoColumns.concat(e)),e},e.prototype.checkColSpanActiveInCols=function(e){var t=!1;return e.forEach(function(e){s.Utils.exists(e.getColDef().colSpan)&&(t=!0)}),t},e.prototype.calculateColumnsForGroupDisplay=function(){var e=this;this.groupDisplayColumns=[];var t=function(t){var o=t.getColDef();o&&s.Utils.exists(o.showRowGroup)&&e.groupDisplayColumns.push(t)};this.gridColumns.forEach(t),this.groupAutoColumns&&this.groupAutoColumns.forEach(t)},e.prototype.getGroupDisplayColumns=function(){return this.groupDisplayColumns},e.prototype.createColumnsToDisplayFromValueColumns=function(){var e=this,t=this.valueColumns.slice();return t.sort(function(t,o){return e.gridColumns.indexOf(t)-e.gridColumns.indexOf(o)}),t},e.prototype.updateDisplayedColumns=function(){var e=this.calculateColumnsForDisplay();this.buildDisplayedTrees(e),this.calculateColumnsForGroupDisplay(),this.updateGroupsAndDisplayedColumns(),this.setFirstRightAndLastLeftPinned()},e.prototype.isSecondaryColumnsPresent=function(){return this.secondaryColumnsPresent},e.prototype.setSecondaryColumns=function(e){var t=e&&e.length>0;if(t||this.secondaryColumnsPresent){if(t){this.processSecondaryColumnDefinitions(e);var o=this.balancedColumnTreeBuilder.createBalancedColumnGroups(e,!1);this.secondaryBalancedTree=o.balancedTree,this.secondaryHeaderRowCount=o.treeDept+1,this.secondaryColumns=this.getColumnsFromTree(this.secondaryBalancedTree),this.secondaryColumnsPresent=!0}else this.secondaryBalancedTree=null,this.secondaryHeaderRowCount=-1,this.secondaryColumns=null,this.secondaryColumnsPresent=!1;this.copyDownGridColumns(),this.updateDisplayedColumns()}},e.prototype.processSecondaryColumnDefinitions=function(e){function t(e){e.forEach(function(e){if(s.Utils.exists(e.children)){var n=e;i&&i(n),t(n.children)}else{var r=e;o&&o(r)}})}var o=this.gridOptionsWrapper.getProcessSecondaryColDefFunc(),i=this.gridOptionsWrapper.getProcessSecondaryColGroupDefFunc();(o||i)&&t(e)},e.prototype.copyDownGridColumns=function(){this.secondaryColumns?(this.gridBalancedTree=this.secondaryBalancedTree.slice(),this.gridHeaderRowCount=this.secondaryHeaderRowCount,this.gridColumns=this.secondaryColumns.slice()):(this.gridBalancedTree=this.primaryBalancedTree.slice(),this.gridHeaderRowCount=this.primaryHeaderRowCount,this.gridColumns=this.primaryColumns.slice()),this.clearDisplayedColumns(),this.colSpanActive=this.checkColSpanActiveInCols(this.gridColumns);var e={type:v.Events.EVENT_GRID_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},e.prototype.clearDisplayedColumns=function(){this.displayedLeftColumnTree=[],this.displayedRightColumnTree=[],this.displayedCentreColumnTree=[],this.displayedLeftHeaderRows={},this.displayedRightHeaderRows={},this.displayedCentreHeaderRows={},this.displayedLeftColumns=[],this.displayedRightColumns=[],this.displayedCenterColumns=[],this.allDisplayedColumns=[],this.allDisplayedVirtualColumns=[]},e.prototype.updateGroupsAndDisplayedColumns=function(){this.updateGroups(),this.updateDisplayedColumnsFromTrees(),this.updateVirtualSets(),this.updateBodyWidths();var e={type:v.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},e.prototype.updateDisplayedColumnsFromTrees=function(){this.addToDisplayedColumns(this.displayedLeftColumnTree,this.displayedLeftColumns),this.addToDisplayedColumns(this.displayedCentreColumnTree,this.displayedCenterColumns),this.addToDisplayedColumns(this.displayedRightColumnTree,this.displayedRightColumns),this.setupAllDisplayedColumns(),this.setLeftValues()},e.prototype.setupAllDisplayedColumns=function(){this.gridOptionsWrapper.isEnableRtl()?this.allDisplayedColumns=this.displayedRightColumns.concat(this.displayedCenterColumns).concat(this.displayedLeftColumns):this.allDisplayedColumns=this.displayedLeftColumns.concat(this.displayedCenterColumns).concat(this.displayedRightColumns)},e.prototype.setLeftValues=function(){this.setLeftValuesOfColumns(),this.setLeftValuesOfGroups()},e.prototype.setLeftValuesOfColumns=function(){var e=this,t=this.primaryColumns.slice(0),o=this.gridOptionsWrapper.isEnableRtl();[this.displayedLeftColumns,this.displayedRightColumns,this.displayedCenterColumns].forEach(function(i){if(o){var n=e.getWidthOfColsInList(i);i.forEach(function(e){n-=e.getActualWidth(),e.setLeft(n)})}else{var r=0;i.forEach(function(e){e.setLeft(r),r+=e.getActualWidth()})}s.Utils.removeAllFromArray(t,i)}),t.forEach(function(e){e.setLeft(null)})},e.prototype.setLeftValuesOfGroups=function(){[this.displayedLeftColumnTree,this.displayedRightColumnTree,this.displayedCentreColumnTree].forEach(function(e){e.forEach(function(e){if(e instanceof a.ColumnGroup){e.checkLeft()}})})},e.prototype.addToDisplayedColumns=function(e,t){t.length=0,this.columnUtils.depthFirstDisplayedColumnTreeSearch(e,function(e){e instanceof l.Column&&t.push(e)})},e.prototype.updateDisplayedCenterVirtualColumns=function(){var e=this.gridOptionsWrapper.isSuppressColumnVirtualisation()||this.gridOptionsWrapper.isForPrint();this.allDisplayedCenterVirtualColumns=e?this.displayedCenterColumns:this.filterOutColumnsWithinViewport(),this.allDisplayedVirtualColumns=this.allDisplayedCenterVirtualColumns.concat(this.displayedLeftColumns).concat(this.displayedRightColumns);var t={};return this.allDisplayedVirtualColumns.forEach(function(e){t[e.getId()]=!0}),t},e.prototype.getVirtualHeaderGroupRow=function(e,t){var o;switch(e){case l.Column.PINNED_LEFT:o=this.displayedLeftHeaderRows[t];break;case l.Column.PINNED_RIGHT:o=this.displayedRightHeaderRows[t];break;default:o=this.displayedCentreHeaderRows[t]}return s.Utils.missing(o)&&(o=[]),o},e.prototype.updateDisplayedVirtualGroups=function(e){function t(o,i,n){for(var r=!1,s=0;s<o.length;s++){var a=o[s],p=void 0;if(a instanceof l.Column)p=!0===e[a.getId()];else{p=t(a.getDisplayedChildren(),i,n+1)}p&&(r=!0,i[n]||(i[n]=[]),i[n].push(a))}return r}this.displayedLeftHeaderRows={},this.displayedRightHeaderRows={},this.displayedCentreHeaderRows={},t(this.displayedLeftColumnTree,this.displayedLeftHeaderRows,0),t(this.displayedRightColumnTree,this.displayedRightHeaderRows,0),t(this.displayedCentreColumnTree,this.displayedCentreHeaderRows,0)},e.prototype.updateVirtualSets=function(){var e=this.updateDisplayedCenterVirtualColumns();this.updateDisplayedVirtualGroups(e)},e.prototype.filterOutColumnsWithinViewport=function(){return s.Utils.filter(this.displayedCenterColumns,this.isColumnInViewport.bind(this))},e.prototype.sizeColumnsToFit=function(e){function t(e){s.Utils.removeFromArray(r,e),n.push(e)}var o=this,i=this.getAllDisplayedColumns();if(!(e<=0||0===i.length)){for(var n=s.Utils.filter(i,function(e){return!0===e.getColDef().suppressSizeToFit}),r=s.Utils.filter(i,function(e){return!0!==e.getColDef().suppressSizeToFit}),a=r.slice(0),l=!1;!l;){l=!0;var p=e-this.getWidthOfColsInList(n);if(p<=0)r.forEach(function(e){e.setMinimum()});else for(var u=p/this.getWidthOfColsInList(r),c=p,d=r.length-1;d>=0;d--){var h=r[d],f=Math.round(h.getActualWidth()*u);if(f<h.getMinWidth())h.setMinimum(),t(h),l=!1;else if(h.isGreaterThanMax(f))h.setActualWidth(h.getMaxWidth()),t(h),l=!1;else{var g=0===d;g?h.setActualWidth(c):h.setActualWidth(f)}c-=f}}this.setLeftValues(),this.updateBodyWidths(),a.forEach(function(e){var t={type:v.Events.EVENT_COLUMN_RESIZED,column:e,columns:[e],finished:!0,api:o.gridApi,columnApi:o.columnApi};o.eventService.dispatchEvent(t)})}},e.prototype.buildDisplayedTrees=function(e){var t=s.Utils.filter(e,function(e){return"left"===e.getPinned()}),o=s.Utils.filter(e,function(e){return"right"===e.getPinned()}),i=s.Utils.filter(e,function(e){return"left"!==e.getPinned()&&"right"!==e.getPinned()}),n=new C.GroupInstanceIdCreator;this.displayedLeftColumnTree=this.displayedGroupCreator.createDisplayedGroups(t,this.gridBalancedTree,n,this.displayedLeftColumnTree),this.displayedRightColumnTree=this.displayedGroupCreator.createDisplayedGroups(o,this.gridBalancedTree,n,this.displayedRightColumnTree),this.displayedCentreColumnTree=this.displayedGroupCreator.createDisplayedGroups(i,this.gridBalancedTree,n,this.displayedCentreColumnTree)},e.prototype.updateGroups=function(){var e=this.getAllDisplayedColumnGroups();this.columnUtils.depthFirstAllColumnTreeSearch(e,function(e){if(e instanceof a.ColumnGroup){e.calculateDisplayedColumns()}})},e.prototype.getGroupAutoColumns=function(){return this.groupAutoColumns},e.prototype.createGroupAutoColumnsIfNeeded=function(){if(this.autoGroupsNeedBuilding){this.autoGroupsNeedBuilding=!1;var e=this.rowGroupColumns.length>0&&!this.gridOptionsWrapper.isGroupSuppressAutoColumn()&&!this.gridOptionsWrapper.isGroupUseEntireRow()&&!this.gridOptionsWrapper.isGroupSuppressRow();this.groupAutoColumns=e?this.autoGroupColService.createAutoGroupColumns(this.rowGroupColumns):null}},e.prototype.createValueColumns=function(){this.valueColumns.forEach(function(e){return e.setValueActive(!1)}),this.valueColumns=[];for(var e=0;e<this.primaryColumns.length;e++){var t=this.primaryColumns[e];t.getColDef().aggFunc&&(t.setAggFunc(t.getColDef().aggFunc),this.valueColumns.push(t),t.setValueActive(!0))}},e.prototype.getWidthOfColsInList=function(e){for(var t=0,o=0;o<e.length;o++)t+=e[o].getActualWidth();return t},e.prototype.getGridBalancedTree=function(){return this.gridBalancedTree},i([E.Autowired("gridOptionsWrapper"),n("design:type",p.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([E.Autowired("expressionService"),n("design:type",u.ExpressionService)],e.prototype,"expressionService",void 0),i([E.Autowired("balancedColumnTreeBuilder"),n("design:type",c.BalancedColumnTreeBuilder)],e.prototype,"balancedColumnTreeBuilder",void 0),i([E.Autowired("displayedGroupCreator"),n("design:type",d.DisplayedGroupCreator)],e.prototype,"displayedGroupCreator",void 0),i([E.Autowired("autoWidthCalculator"),n("design:type",h.AutoWidthCalculator)],e.prototype,"autoWidthCalculator",void 0),i([E.Autowired("eventService"),n("design:type",f.EventService)],e.prototype,"eventService",void 0),i([E.Autowired("columnUtils"),n("design:type",g.ColumnUtils)],e.prototype,"columnUtils",void 0),i([E.Autowired("gridPanel"),n("design:type",w.GridPanel)],e.prototype,"gridPanel",void 0),i([E.Autowired("context"),n("design:type",E.Context)],e.prototype,"context",void 0),i([E.Autowired("columnAnimationService"),n("design:type",R.ColumnAnimationService)],e.prototype,"columnAnimationService",void 0),i([E.Autowired("autoGroupColService"),n("design:type",_.AutoGroupColService)],e.prototype,"autoGroupColService",void 0),i([E.Optional("aggFuncService"),n("design:type",Object)],e.prototype,"aggFuncService",void 0),i([E.Optional("valueCache"),n("design:type",O.ValueCache)],e.prototype,"valueCache",void 0),i([E.Autowired("columnApi"),n("design:type",S)],e.prototype,"columnApi",void 0),i([E.Autowired("gridApi"),n("design:type",A.GridApi)],e.prototype,"gridApi",void 0),i([E.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),i([r(0,E.Qualifier("loggerFactory")),n("design:type",Function),n("design:paramtypes",[y.LoggerFactory]),n("design:returntype",void 0)],e.prototype,"setBeans",null),e=i([E.Bean("columnController")],e)}();t.ColumnController=b},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(17),s=o(5),a=o(7),l=o(4),p=o(15),u=o(12),c=function(){function e(e,t,o){this.displayedChildren=[],this.localEventService=new s.EventService,this.groupId=t,this.instanceId=o,this.originalColumnGroup=e}return e.createUniqueId=function(e,t){return e+"_"+t},e.prototype.reset=function(){this.parent=null,this.children=null,this.displayedChildren=null},e.prototype.getParent=function(){return this.parent},e.prototype.setParent=function(e){this.parent=e},e.prototype.getUniqueId=function(){return e.createUniqueId(this.groupId,this.instanceId)},e.prototype.isEmptyGroup=function(){return 0===this.displayedChildren.length},e.prototype.checkLeft=function(){if(this.displayedChildren.forEach(function(t){t instanceof e&&t.checkLeft()}),this.displayedChildren.length>0)if(this.gridOptionsWrapper.isEnableRtl()){var t=this.displayedChildren[this.displayedChildren.length-1],o=t.getLeft();this.setLeft(o)}else{var i=this.displayedChildren[0].getLeft();this.setLeft(i)}else this.setLeft(null)},e.prototype.getLeft=function(){return this.left},e.prototype.getOldLeft=function(){return this.oldLeft},e.prototype.setLeft=function(t){this.oldLeft=t,this.left!==t&&(this.left=t,this.localEventService.dispatchEvent(this.createAgEvent(e.EVENT_LEFT_CHANGED)))},e.prototype.createAgEvent=function(e){return{type:e}},e.prototype.addEventListener=function(e,t){this.localEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.localEventService.removeEventListener(e,t)},e.prototype.getGroupId=function(){return this.groupId},e.prototype.getInstanceId=function(){return this.instanceId},e.prototype.isChildInThisGroupDeepSearch=function(t){var o=!1;return this.children.forEach(function(i){t===i&&(o=!0),i instanceof e&&i.isChildInThisGroupDeepSearch(t)&&(o=!0)}),o},e.prototype.getActualWidth=function(){var e=0;return this.displayedChildren&&this.displayedChildren.forEach(function(t){e+=t.getActualWidth()}),e},e.prototype.isResizable=function(){if(!this.displayedChildren)return!1;var e=!1;return this.displayedChildren.forEach(function(t){t.isResizable()&&(e=!0)}),e},e.prototype.getMinWidth=function(){var e=0;return this.displayedChildren.forEach(function(t){e+=t.getMinWidth()}),e},e.prototype.addChild=function(e){this.children||(this.children=[]),this.children.push(e)},e.prototype.getDisplayedChildren=function(){return this.displayedChildren},e.prototype.getLeafColumns=function(){var e=[];return this.addLeafColumns(e),e},e.prototype.getDisplayedLeafColumns=function(){var e=[];return this.addDisplayedLeafColumns(e),e},e.prototype.getDefinition=function(){return this.originalColumnGroup.getColGroupDef()},e.prototype.getColGroupDef=function(){return this.originalColumnGroup.getColGroupDef()},e.prototype.isPadding=function(){return this.originalColumnGroup.isPadding()},e.prototype.isExpandable=function(){return this.originalColumnGroup.isExpandable()},e.prototype.isExpanded=function(){return this.originalColumnGroup.isExpanded()},e.prototype.setExpanded=function(e){this.originalColumnGroup.setExpanded(e)},e.prototype.addDisplayedLeafColumns=function(t){this.displayedChildren.forEach(function(o){o instanceof r.Column?t.push(o):o instanceof e&&o.addDisplayedLeafColumns(t)})},e.prototype.addLeafColumns=function(t){this.children.forEach(function(o){o instanceof r.Column?t.push(o):o instanceof e&&o.addLeafColumns(t)})},e.prototype.getChildren=function(){return this.children},e.prototype.getColumnGroupShow=function(){return this.originalColumnGroup.getColumnGroupShow()},e.prototype.getOriginalColumnGroup=function(){return this.originalColumnGroup},e.prototype.calculateDisplayedColumns=function(){var t=this;this.displayedChildren=[],this.originalColumnGroup.isExpandable()?this.children.forEach(function(o){switch(o.getColumnGroupShow()){case e.HEADER_GROUP_SHOW_OPEN:t.originalColumnGroup.isExpanded()&&t.displayedChildren.push(o);break;case e.HEADER_GROUP_SHOW_CLOSED:t.originalColumnGroup.isExpanded()||t.displayedChildren.push(o);break;default:t.displayedChildren.push(o)}}):this.displayedChildren=this.children,this.localEventService.dispatchEvent(this.createAgEvent(e.EVENT_DISPLAYED_CHILDREN_CHANGED))},e.HEADER_GROUP_SHOW_OPEN="open",e.HEADER_GROUP_SHOW_CLOSED="closed",e.EVENT_LEFT_CHANGED="leftChanged",e.EVENT_DISPLAYED_CHILDREN_CHANGED="leftChanged",i([a.Autowired("gridOptionsWrapper"),n("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([a.Autowired("columnApi"),n("design:type",p.ColumnApi)],e.prototype,"columnApi",void 0),i([a.Autowired("gridApi"),n("design:type",u.GridApi)],e.prototype,"gridApi",void 0),e}();t.ColumnGroup=c},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(5),s=o(8),a=o(7),l=o(4),p=o(18),u=o(15),c=o(12),d=function(){function e(e,t,o){this.moving=!1,this.menuVisible=!1,this.filterActive=!1,this.eventService=new r.EventService,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.colDef=e,this.visible=!e.hide,this.sort=e.sort,this.sortedAt=e.sortedAt,this.colId=t,this.primary=o}return e.prototype.setParent=function(e){this.parent=e},e.prototype.getParent=function(){return this.parent},e.prototype.initialise=function(){this.cellEditor=this.frameworkFactory.colDefCellEditor(this.colDef),this.filter=this.frameworkFactory.colDefFilter(this.colDef),this.setPinned(this.colDef.pinned);var e=this.gridOptionsWrapper.getMinColWidth(),t=this.gridOptionsWrapper.getMaxColWidth();this.colDef.minWidth?this.minWidth=this.colDef.minWidth:this.minWidth=e,this.colDef.maxWidth?this.maxWidth=this.colDef.maxWidth:this.maxWidth=t,this.actualWidth=this.columnUtils.calculateColInitialWidth(this.colDef);var o=this.gridOptionsWrapper.isSuppressFieldDotNotation();this.fieldContainsDots=s.Utils.exists(this.colDef.field)&&this.colDef.field.indexOf(".")>=0&&!o,this.tooltipFieldContainsDots=s.Utils.exists(this.colDef.tooltipField)&&this.colDef.tooltipField.indexOf(".")>=0&&!o,this.validate()},e.prototype.isEmptyGroup=function(){return!1},e.prototype.isRowGroupDisplayed=function(e){if(s.Utils.missing(this.colDef)||s.Utils.missing(this.colDef.showRowGroup))return!1;var t=!0===this.colDef.showRowGroup,o=this.colDef.showRowGroup===e;return t||o},e.prototype.getCellEditor=function(){return this.cellEditor},e.prototype.getFilter=function(){return this.filter},e.prototype.getUniqueId=function(){return this.getId()},e.prototype.isPrimary=function(){return this.primary},e.prototype.isFilterAllowed=function(){return this.primary&&!this.colDef.suppressFilter},e.prototype.isFieldContainsDots=function(){return this.fieldContainsDots},e.prototype.isTooltipFieldContainsDots=function(){return this.tooltipFieldContainsDots},e.prototype.validate=function(){this.gridOptionsWrapper.isEnterprise()||(s.Utils.exists(this.colDef.aggFunc)&&console.warn("ag-Grid: aggFunc is only valid in ag-Grid-Enterprise"),s.Utils.exists(this.colDef.rowGroupIndex)&&console.warn("ag-Grid: rowGroupIndex is only valid in ag-Grid-Enterprise"),s.Utils.exists(this.colDef.rowGroup)&&console.warn("ag-Grid: rowGroup is only valid in ag-Grid-Enterprise"),s.Utils.exists(this.colDef.pivotIndex)&&console.warn("ag-Grid: pivotIndex is only valid in ag-Grid-Enterprise"),s.Utils.exists(this.colDef.pivot)&&console.warn("ag-Grid: pivot is only valid in ag-Grid-Enterprise")),s.Utils.exists(this.colDef.width)&&"number"!=typeof this.colDef.width&&console.warn("ag-Grid: colDef.width should be a number, not "+typeof this.colDef.width),s.Utils.get(this,"colDef.cellRendererParams.restrictToOneGroup",null)&&console.warn("ag-Grid: Since ag-grid 11.0.0 cellRendererParams.restrictToOneGroup is deprecated. You should use showRowGroup"),s.Utils.get(this,"colDef.cellRendererParams.keyMap",null)&&console.warn("ag-Grid: Since ag-grid 11.0.0 cellRendererParams.keyMap is deprecated. You should use colDef.keyCreator"),s.Utils.get(this,"colDef.cellRendererParams.keyMap",null)&&console.warn("ag-Grid: Since ag-grid 11.0.0 cellRendererParams.keyMap is deprecated. You should use colDef.keyCreator");var e=this.colDef;e.floatingCellRenderer&&(console.warn("ag-Grid: since v11, floatingCellRenderer is now pinnedRowCellRenderer"),this.colDef.pinnedRowCellRenderer=e.floatingCellRenderer),e.floatingRendererFramework&&(console.warn("ag-Grid: since v11, floatingRendererFramework is now pinnedRowCellRendererFramework"),this.colDef.pinnedRowCellRendererFramework=e.floatingRendererFramework),e.floatingRendererParams&&(console.warn("ag-Grid: since v11, floatingRendererParams is now pinnedRowCellRendererParams"),this.colDef.pinnedRowCellRendererParams=e.floatingRendererParams),e.floatingValueFormatter&&(console.warn("ag-Grid: since v11, floatingValueFormatter is now pinnedRowValueFormatter"),this.colDef.pinnedRowValueFormatter=e.floatingValueFormatter),e.cellFormatter&&(console.warn("ag-Grid: since v12, cellFormatter is now valueFormatter"),s.Utils.missing(this.colDef.valueFormatter)&&(this.colDef.valueFormatter=e.cellFormatter))},e.prototype.addEventListener=function(e,t){this.eventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventService.removeEventListener(e,t)},e.prototype.createIsColumnFuncParams=function(e){return{node:e,column:this,colDef:this.colDef,context:this.gridOptionsWrapper.getContext(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()}},e.prototype.isSuppressNavigable=function(e){if("boolean"==typeof this.colDef.suppressNavigable)return this.colDef.suppressNavigable;if("function"==typeof this.colDef.suppressNavigable){var t=this.createIsColumnFuncParams(e);return(0,this.colDef.suppressNavigable)(t)}return!1},e.prototype.isCellEditable=function(e){return!(e.group&&!this.gridOptionsWrapper.isEnableGroupEdit())&&this.isColumnFunc(e,this.colDef.editable)},e.prototype.isSuppressPaste=function(e){return this.isColumnFunc(e,this.colDef?this.colDef.suppressPaste:null)},e.prototype.isResizable=function(){var e=this.gridOptionsWrapper.isEnableColResize(),t=this.colDef&&this.colDef.suppressResize;return e&&!t},e.prototype.isColumnFunc=function(e,t){if("boolean"==typeof t)return t;if("function"==typeof t){return t(this.createIsColumnFuncParams(e))}return!1},e.prototype.setMoving=function(t){this.moving=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_MOVING_CHANGED))},e.prototype.createColumnEvent=function(e){return{api:this.gridApi,columnApi:this.columnApi,type:e,column:this,columns:[this]}},e.prototype.isMoving=function(){return this.moving},e.prototype.getSort=function(){return this.sort},e.prototype.setSort=function(t){this.sort!==t&&(this.sort=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_SORT_CHANGED)))},e.prototype.setMenuVisible=function(t){this.menuVisible!==t&&(this.menuVisible=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_MENU_VISIBLE_CHANGED)))},e.prototype.isMenuVisible=function(){return this.menuVisible},e.prototype.isSortAscending=function(){return this.sort===e.SORT_ASC},e.prototype.isSortDescending=function(){return this.sort===e.SORT_DESC},e.prototype.isSortNone=function(){return s.Utils.missing(this.sort)},e.prototype.isSorting=function(){return s.Utils.exists(this.sort)},e.prototype.getSortedAt=function(){return this.sortedAt},e.prototype.setSortedAt=function(e){this.sortedAt=e},e.prototype.setAggFunc=function(e){this.aggFunc=e},e.prototype.getAggFunc=function(){return this.aggFunc},e.prototype.getLeft=function(){return this.left},e.prototype.getOldLeft=function(){return this.oldLeft},e.prototype.getRight=function(){return this.left+this.actualWidth},e.prototype.setLeft=function(t){this.oldLeft=this.left,this.left!==t&&(this.left=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_LEFT_CHANGED)))},e.prototype.isFilterActive=function(){return this.filterActive},e.prototype.setFilterActive=function(t){this.filterActive!==t&&(this.filterActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_FILTER_ACTIVE_CHANGED))),this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_FILTER_CHANGED))},e.prototype.setPinned=function(t){this.gridOptionsWrapper.isForPrint()||(!0===t||t===e.PINNED_LEFT?this.pinned=e.PINNED_LEFT:t===e.PINNED_RIGHT?this.pinned=e.PINNED_RIGHT:this.pinned=null)},e.prototype.setFirstRightPinned=function(t){this.firstRightPinned!==t&&(this.firstRightPinned=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_FIRST_RIGHT_PINNED_CHANGED)))},e.prototype.setLastLeftPinned=function(t){this.lastLeftPinned!==t&&(this.lastLeftPinned=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_LAST_LEFT_PINNED_CHANGED)))},e.prototype.isFirstRightPinned=function(){return this.firstRightPinned},e.prototype.isLastLeftPinned=function(){return this.lastLeftPinned},e.prototype.isPinned=function(){return this.pinned===e.PINNED_LEFT||this.pinned===e.PINNED_RIGHT},e.prototype.isPinnedLeft=function(){return this.pinned===e.PINNED_LEFT},e.prototype.isPinnedRight=function(){return this.pinned===e.PINNED_RIGHT},e.prototype.getPinned=function(){return this.pinned},e.prototype.setVisible=function(t){var o=!0===t;this.visible!==o&&(this.visible=o,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_VISIBLE_CHANGED)))},e.prototype.isVisible=function(){return this.visible},e.prototype.getColDef=function(){return this.colDef},e.prototype.getColumnGroupShow=function(){return this.colDef.columnGroupShow},e.prototype.getColId=function(){return this.colId},e.prototype.getId=function(){return this.getColId()},e.prototype.getDefinition=function(){return this.colDef},e.prototype.getActualWidth=function(){return this.actualWidth},e.prototype.getColSpan=function(e){if(s.Utils.missing(this.colDef.colSpan))return 1;var t={node:e,data:e.data,colDef:this.colDef,column:this,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()},o=this.colDef.colSpan(t);return o>1?o:1},e.prototype.setActualWidth=function(t){this.actualWidth!==t&&(this.actualWidth=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_WIDTH_CHANGED)))},e.prototype.isGreaterThanMax=function(e){return!!this.maxWidth&&e>this.maxWidth},e.prototype.getMinWidth=function(){return this.minWidth},e.prototype.getMaxWidth=function(){return this.maxWidth},e.prototype.setMinimum=function(){this.setActualWidth(this.minWidth)},e.prototype.setRowGroupActive=function(t){this.rowGroupActive!==t&&(this.rowGroupActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_ROW_GROUP_CHANGED)))},e.prototype.isRowGroupActive=function(){return this.rowGroupActive},e.prototype.setPivotActive=function(t){this.pivotActive!==t&&(this.pivotActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_PIVOT_CHANGED)))},e.prototype.isPivotActive=function(){return this.pivotActive},e.prototype.isAnyFunctionActive=function(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()},e.prototype.isAnyFunctionAllowed=function(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()},e.prototype.setValueActive=function(t){this.aggregationActive!==t&&(this.aggregationActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_VALUE_CHANGED)))},e.prototype.isValueActive=function(){return this.aggregationActive},e.prototype.isAllowPivot=function(){return!0===this.colDef.enablePivot},e.prototype.isAllowValue=function(){return!0===this.colDef.enableValue},e.prototype.isAllowRowGroup=function(){return!0===this.colDef.enableRowGroup},e.prototype.getMenuTabs=function(e){var t=this.getColDef().menuTabs;return null==t&&(t=e),t},e.EVENT_MOVING_CHANGED="movingChanged",e.EVENT_LEFT_CHANGED="leftChanged",e.EVENT_WIDTH_CHANGED="widthChanged",e.EVENT_LAST_LEFT_PINNED_CHANGED="lastLeftPinnedChanged",e.EVENT_FIRST_RIGHT_PINNED_CHANGED="firstRightPinnedChanged",e.EVENT_VISIBLE_CHANGED="visibleChanged",e.EVENT_FILTER_CHANGED="filterChanged",e.EVENT_FILTER_ACTIVE_CHANGED="filterActiveChanged",e.EVENT_SORT_CHANGED="sortChanged",e.EVENT_MENU_VISIBLE_CHANGED="menuVisibleChanged",e.EVENT_ROW_GROUP_CHANGED="columnRowGroupChanged",e.EVENT_PIVOT_CHANGED="columnPivotChanged",e.EVENT_VALUE_CHANGED="columnValueChanged",e.PINNED_RIGHT="right",e.PINNED_LEFT="left",e.SORT_ASC="asc",e.SORT_DESC="desc",i([a.Autowired("gridOptionsWrapper"),n("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([a.Autowired("columnUtils"),n("design:type",p.ColumnUtils)],e.prototype,"columnUtils",void 0),i([a.Autowired("frameworkFactory"),n("design:type",Object)],e.prototype,"frameworkFactory",void 0),i([a.Autowired("columnApi"),n("design:type",u.ColumnApi)],e.prototype,"columnApi",void 0),i([a.Autowired("gridApi"),n("design:type",c.GridApi)],e.prototype,"gridApi",void 0),i([a.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"initialise",null),e}();t.Column=d},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(4),s=o(16),a=o(19),l=o(7),p=o(7),u=function(){function e(){}return e.prototype.calculateColInitialWidth=function(e){return e.width?e.width<this.gridOptionsWrapper.getMinColWidth()?this.gridOptionsWrapper.getMinColWidth():e.width:this.gridOptionsWrapper.getColWidth()},e.prototype.getOriginalPathForColumn=function(e,t){function o(t,r){for(var s=0;s<t.length;s++){if(n)return;var l=t[s];if(l instanceof a.OriginalColumnGroup){o(l.getChildren(),r+1),i[r]=l}else l===e&&(n=!0)}}var i=[],n=!1;return o(t,0),n?i:null},e.prototype.depthFirstOriginalTreeSearch=function(e,t){var o=this;e&&e.forEach(function(e){e instanceof a.OriginalColumnGroup&&o.depthFirstOriginalTreeSearch(e.getChildren(),t),t(e)})},e.prototype.depthFirstAllColumnTreeSearch=function(e,t){var o=this;e&&e.forEach(function(e){e instanceof s.ColumnGroup&&o.depthFirstAllColumnTreeSearch(e.getChildren(),t),t(e)})},e.prototype.depthFirstDisplayedColumnTreeSearch=function(e,t){var o=this;e&&e.forEach(function(e){e instanceof s.ColumnGroup&&o.depthFirstDisplayedColumnTreeSearch(e.getDisplayedChildren(),t),t(e)})},i([p.Autowired("gridOptionsWrapper"),n("design:type",r.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),e=i([l.Bean("columnUtils")],e)}();t.ColumnUtils=u},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(16),s=o(17),a=o(5),l=o(7),p=o(15),u=o(12),c=function(){function e(e,t,o){this.localEventService=new a.EventService,this.expandable=!1,this.colGroupDef=e,this.groupId=t,this.expanded=e&&!!e.openByDefault,this.padding=o}return e.prototype.isVisible=function(){return!!this.children&&this.children.some(function(e){return e.isVisible()})},e.prototype.isPadding=function(){return this.padding},e.prototype.setExpanded=function(t){this.expanded=t;var o={type:e.EVENT_EXPANDED_CHANGED};this.localEventService.dispatchEvent(o)},e.prototype.isExpandable=function(){return this.expandable},e.prototype.isExpanded=function(){return this.expanded},e.prototype.getGroupId=function(){return this.groupId},e.prototype.getId=function(){return this.getGroupId()},e.prototype.setChildren=function(e){this.children=e},e.prototype.getChildren=function(){return this.children},e.prototype.getColGroupDef=function(){return this.colGroupDef},e.prototype.getLeafColumns=function(){var e=[];return this.addLeafColumns(e),e},e.prototype.addLeafColumns=function(t){this.children.forEach(function(o){o instanceof s.Column?t.push(o):o instanceof e&&o.addLeafColumns(t)})},e.prototype.getColumnGroupShow=function(){return this.padding?this.children[0].getColumnGroupShow():this.colGroupDef.columnGroupShow},e.prototype.setupExpandable=function(){var e=this;this.setExpandable(),this.getLeafColumns().forEach(function(t){return t.addEventListener(s.Column.EVENT_VISIBLE_CHANGED,e.onColumnVisibilityChanged.bind(e))})},e.prototype.setExpandable=function(){for(var t=!1,o=!1,i=!1,n=0,s=this.children.length;n<s;n++){var a=this.children[n];if(a.isVisible()){var l=a.getColumnGroupShow();l===r.ColumnGroup.HEADER_GROUP_SHOW_OPEN?(t=!0,i=!0):l===r.ColumnGroup.HEADER_GROUP_SHOW_CLOSED?(o=!0,i=!0):(t=!0,o=!0)}}var p=t&&o&&i;if(this.expandable!==p){this.expandable=p;var u={type:e.EVENT_EXPANDABLE_CHANGED};this.localEventService.dispatchEvent(u)}},e.prototype.onColumnVisibilityChanged=function(){this.setExpandable()},e.prototype.addEventListener=function(e,t){this.localEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.localEventService.removeEventListener(e,t)},e.EVENT_EXPANDED_CHANGED="expandedChanged",e.EVENT_EXPANDABLE_CHANGED="expandableChanged",i([l.Autowired("columnApi"),n("design:type",p.ColumnApi)],e.prototype,"columnApi",void 0),i([l.Autowired("gridApi"),n("design:type",u.GridApi)],e.prototype,"gridApi",void 0),e}();t.OriginalColumnGroup=c},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(o,i){t(o,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(6),a=o(7),l=o(7),p=function(){function e(){this.expressionToFunctionCache={}}return e.prototype.setBeans=function(e){this.logger=e.create("ExpressionService")},e.prototype.evaluate=function(e,t){if("function"==typeof e){return e(t)}if("string"==typeof e){var o=e;return this.evaluateExpression(o,t)}console.error("ag-Grid: value should be either a string or a function",e)},e.prototype.evaluateExpression=function(e,t){try{return this.createExpressionFunction(e)(t.value,t.context,t.oldValue,t.newValue,t.value,t.node,t.data,t.colDef,t.rowIndex,t.api,t.columnApi,t.getValue,t.column,t.columnGroup)}catch(t){return console.log("Processing of the expression failed"),console.log("Expression = "+e),console.log("Exception = "+t),null}},e.prototype.createExpressionFunction=function(e){if(this.expressionToFunctionCache[e])return this.expressionToFunctionCache[e];var t=this.createFunctionBody(e),o=new Function("x, ctx, oldValue, newValue, value, node, data, colDef, rowIndex, api, columnApi, getValue, column, columnGroup",t);return this.expressionToFunctionCache[e]=o,o},e.prototype.createFunctionBody=function(e){return e.indexOf("return")>=0?e:"return "+e+";"},i([r(0,l.Qualifier("loggerFactory")),n("design:type",Function),n("design:paramtypes",[s.LoggerFactory]),n("design:returntype",void 0)],e.prototype,"setBeans",null),e=i([a.Bean("expressionService")],e)}();t.ExpressionService=p},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(18),s=o(16),a=o(19),l=o(7),p=o(8),u=o(7),c=function(){function e(){}return e.prototype.createDisplayedGroups=function(e,t,o,i){var n,r,s=this,a=[],l=this.mapOldGroupsById(i);return e.forEach(function(e){for(var i=s.getOriginalPathForColumn(t,e),p=[],u=!r,c=0;c<i.length;c++)if(u||i[c]!==r[c]){var d=s.createColumnGroup(i[c],o,l);p[c]=d,0==c?a.push(d):p[c-1].addChild(d)}else p[c]=n[c];0===p.length?a.push(e):p[p.length-1].addChild(e);n=p,r=i}),this.setupParentsIntoColumns(a,null),a},e.prototype.createColumnGroup=function(e,t,o){var i=e.getGroupId(),n=t.getInstanceIdForKey(i),r=s.ColumnGroup.createUniqueId(i,n),a=o[r];return a&&a.getOriginalColumnGroup()!==e&&(a=null),p.Utils.exists(a)?a.reset():(a=new s.ColumnGroup(e,i,n),this.context.wireBean(a)),a},e.prototype.mapOldGroupsById=function(e){var t={},o=function(e){e.forEach(function(e){if(e instanceof s.ColumnGroup){var i=e;t[e.getUniqueId()]=i,o(i.getChildren())}})};return e&&o(e),t},e.prototype.setupParentsIntoColumns=function(e,t){var o=this;e.forEach(function(e){if(e.setParent(t),e instanceof s.ColumnGroup){var i=e;o.setupParentsIntoColumns(i.getChildren(),i)}})},e.prototype.createFakePath=function(e){for(var t=[],o=e,i=0;o&&o[0]&&o[0]instanceof a.OriginalColumnGroup;){var n=new a.OriginalColumnGroup(null,"FAKE_PATH_"+i,!0);this.context.wireBean(n),t.push(n),o=o[0].getChildren(),i++}return t},e.prototype.getOriginalPathForColumn=function(e,t){function o(e,r){for(var s=0;s<e.length;s++){if(n)return;var l=e[s];if(l instanceof a.OriginalColumnGroup){o(l.getChildren(),r+1),i[r]=l}else l===t&&(n=!0)}}var i=[],n=!1;return o(e,0),n?i:this.createFakePath(e)},i([u.Autowired("columnUtils"),n("design:type",r.ColumnUtils)],e.prototype,"columnUtils",void 0),i([u.Autowired("context"),n("design:type",l.Context)],e.prototype,"context",void 0),e=i([l.Bean("displayedGroupCreator")],e)}();t.DisplayedGroupCreator=c},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(23),s=o(24),a=o(7),l=o(7),p=o(88),u=o(93),c=o(4),d=o(97),h=function(){function e(){}return e.prototype.getPreferredWidthForColumn=function(e){var t=this.getHeaderCellForColumn(e);if(!t)return-1;var o=document.createElement("span");o.style.position="fixed";var i=this.gridPanel.getBodyContainer();i.appendChild(o),this.putRowCellsIntoDummyContainer(e,o),this.cloneItemIntoDummy(t,o);var n=o.offsetWidth;i.removeChild(o);var r=this.gridOptionsWrapper.getAutoSizePadding();return("number"!=typeof r||r<0)&&(r=4),n+r},e.prototype.getHeaderCellForColumn=function(e){var t=null;return this.headerRenderer.forEachHeaderElement(function(o){if(o instanceof u.RenderedHeaderCell){var i=o;i.getColumn()===e&&(t=i)}else if(o instanceof d.HeaderWrapperComp){var n=o;n.getColumn()===e&&(t=n)}}),t?t.getHtmlElement():null},e.prototype.putRowCellsIntoDummyContainer=function(e,t){var o=this;this.rowRenderer.getAllCellsForColumn(e).forEach(function(e){return o.cloneItemIntoDummy(e,t)})},e.prototype.cloneItemIntoDummy=function(e,t){var o=e.cloneNode(!0);o.style.width="",o.style.position="static",o.style.left="";var i=document.createElement("div");i.style.display="table-row",i.appendChild(o),t.appendChild(i)},i([l.Autowired("rowRenderer"),n("design:type",r.RowRenderer)],e.prototype,"rowRenderer",void 0),i([l.Autowired("headerRenderer"),n("design:type",p.HeaderRenderer)],e.prototype,"headerRenderer",void 0),i([l.Autowired("gridPanel"),n("design:type",s.GridPanel)],e.prototype,"gridPanel",void 0),i([l.Autowired("gridOptionsWrapper"),n("design:type",c.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),e=i([a.Bean("autoWidthCalculator")],e)}();t.AutoWidthCalculator=h},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),n=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(o,i){t(o,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=o(8),l=o(4),p=o(24),u=o(20),c=o(49),d=o(31),h=o(5),f=o(47),g=o(11),y=o(9),v=o(29),m=o(7),C=o(50),E=o(15),w=o(6),R=o(38),_=o(87),O=o(33),A=o(36),S=o(41),b=o(12),P=o(44),D=o(68),T=o(45),N=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rowCompsByIndex={},t.floatingTopRowComps=[],t.floatingBottomRowComps=[],t.refreshInProgress=!1,t}return i(t,e),t.prototype.agWire=function(e){this.logger=e.create("RowRenderer")},t.prototype.init=function(){this.forPrint=this.gridOptionsWrapper.isForPrint(),this.autoHeight=this.gridOptionsWrapper.isAutoHeight(),this.rowContainers=this.gridPanel.getRowContainers(),this.addDestroyableEventListener(this.eventService,g.Events.EVENT_PAGINATION_CHANGED,this.onPageLoaded.bind(this)),this.addDestroyableEventListener(this.eventService,g.Events.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addDestroyableEventListener(this.eventService,g.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.redrawAfterModelUpdate()},t.prototype.onPageLoaded=function(e){a.Utils.missing(e)&&(e={type:g.Events.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,animate:!1,keepRenderedRows:!1,newData:!1,newPage:!1}),this.onModelUpdated(e)},t.prototype.getAllCellsForColumn=function(e){function t(t,i){var n=i.getCellForCol(e);n&&o.push(n)}var o=[];return a.Utils.iterateObject(this.rowCompsByIndex,t),a.Utils.iterateObject(this.floatingBottomRowComps,t),a.Utils.iterateObject(this.floatingTopRowComps,t),o},t.prototype.refreshFloatingRowComps=function(){this.refreshFloatingRows(this.floatingTopRowComps,this.pinnedRowModel.getPinnedTopRowData(),this.rowContainers.floatingTopPinnedLeft,this.rowContainers.floatingTopPinnedRight,this.rowContainers.floatingTop,this.rowContainers.floatingTopFullWidth),this.refreshFloatingRows(this.floatingBottomRowComps,this.pinnedRowModel.getPinnedBottomRowData(),this.rowContainers.floatingBottomPinnedLeft,this.rowContainers.floatingBottomPinnedRight,this.rowContainers.floatingBottom,this.rowContainers.floatingBottomFullWith)},t.prototype.refreshFloatingRows=function(e,t,o,i,n,r){var s=this;e.forEach(function(e){e.destroy()}),e.length=0;var l=this.columnController.getAllDisplayedColumns();a.Utils.missingOrEmpty(l)||(t&&t.forEach(function(t){var a=new f.RowComp(s.$scope,n,o,i,r,t,s.beans,!1,!1);a.init(),e.push(a)}),this.flushContainers(e))},t.prototype.onPinnedRowDataChanged=function(){this.redrawAfterModelUpdate()},t.prototype.onModelUpdated=function(e){var t={recycleRows:e.keepRenderedRows,animate:e.animate,newData:e.newData,newPage:e.newPage};this.redrawAfterModelUpdate(t)},t.prototype.getRenderedIndexesForRowNodes=function(e){var t=[];return a.Utils.missing(e)?t:(a.Utils.iterateObject(this.rowCompsByIndex,function(o,i){var n=i.getRowNode();e.indexOf(n)>=0&&t.push(o)}),t)},t.prototype.redrawRows=function(e){if(e&&0!=e.length){var t=this.getRenderedIndexesForRowNodes(e);this.removeRowComps(t),this.redrawAfterModelUpdate({recycleRows:!0})}},t.prototype.getCellToRestoreFocusToAfterRefresh=function(e){var t=e.suppressKeepFocus?null:this.focusedCellController.getFocusCellToUseAfterRefresh();if(a.Utils.missing(t))return null;var o=document.activeElement,i=this.gridOptionsWrapper.getDomData(o,v.CellComp.DOM_DATA_KEY_CELL_COMP);return a.Utils.missing(i)?null:t},t.prototype.redrawAfterModelUpdate=function(e){void 0===e&&(e={}),this.getLockOnRefresh();var t=this.getCellToRestoreFocusToAfterRefresh(e);this.forPrint||this.sizeContainerToPageHeight(),this.scrollToTopIfNewData(e);var o=this.forPrint||this.autoHeight,i=!o&&e.recycleRows,n=!o&&e.animate,r=this.binRowComps(i);this.redraw(r,n),e.onlyBody||this.refreshFloatingRowComps(),this.restoreFocusedCell(t),this.releaseLockOnRefresh()},t.prototype.scrollToTopIfNewData=function(e){var t=e.newData||e.newPage,o=this.gridOptionsWrapper.isSuppressScrollOnNewData();t&&!o&&this.gridPanel.scrollToTop()},t.prototype.sizeContainerToPageHeight=function(){var e=this.paginationProxy.getCurrentPageHeight();0===e&&(e=1),this.rowContainers.body.setHeight(e),this.rowContainers.fullWidth.setHeight(e),this.rowContainers.pinnedLeft.setHeight(e),this.rowContainers.pinnedRight.setHeight(e)},t.prototype.getLockOnRefresh=function(){if(this.refreshInProgress)throw"ag-Grid: cannot get grid to draw rows when it is in the middle of drawing rows. Your code probably called a grid API method while the grid was in the render stage. To overcome this, put the API call into a timeout, eg instead of api.refreshView(), call setTimeout(function(){api.refreshView(),0}). To see what part of your code that caused the refresh check this stacktrace.";this.refreshInProgress=!0},t.prototype.releaseLockOnRefresh=function(){this.refreshInProgress=!1},t.prototype.restoreFocusedCell=function(e){e&&this.focusedCellController.setFocusedCell(e.rowIndex,e.column,e.floating,!0)},t.prototype.stopEditing=function(e){void 0===e&&(e=!1),this.forEachRowComp(function(t,o){o.stopEditing(e)})},t.prototype.forEachCellComp=function(e){a.Utils.iterateObject(this.rowCompsByIndex,function(t,o){o.forEachCellComp(e)})},t.prototype.forEachRowComp=function(e){a.Utils.iterateObject(this.rowCompsByIndex,e),a.Utils.iterateObject(this.floatingTopRowComps,e),a.Utils.iterateObject(this.floatingBottomRowComps,e)},t.prototype.addRenderedRowListener=function(e,t,o){this.rowCompsByIndex[t].addEventListener(e,o)},t.prototype.refreshCells=function(e){var t=this;void 0===e&&(e={});var o;a.Utils.exists(e.rowNodes)&&(o={top:{},bottom:{},normal:{}},e.rowNodes.forEach(function(e){e.rowPinned===y.Constants.PINNED_TOP?o.top[e.id]=!0:e.rowPinned===y.Constants.PINNED_BOTTOM?o.bottom[e.id]=!0:o.normal[e.id]=!0}));var i;a.Utils.exists(e.columns)&&(i={},e.columns.forEach(function(e){var o=t.columnController.getGridColumn(e);i[o.getId()]=!0}));var n=function(t){var n=t.getRowNode(),r=n.id,s=n.rowPinned;if(a.Utils.exists(o))if(s===y.Constants.PINNED_BOTTOM){if(!o.bottom[r])return}else if(s===y.Constants.PINNED_TOP){if(!o.top[r])return}else if(!o.normal[r])return;t.forEachCellComp(function(t){var o=t.getColumn().getId();i&&!i[o]||t.refreshCell({forceRefresh:e.force,volatile:e.volatile,newData:!1})})};a.Utils.iterateObject(this.rowCompsByIndex,function(e,t){n(t)}),this.floatingTopRowComps&&this.floatingTopRowComps.forEach(n),this.floatingBottomRowComps&&this.floatingBottomRowComps.forEach(n)},t.prototype.destroy=function(){e.prototype.destroy.call(this);var t=Object.keys(this.rowCompsByIndex);this.removeRowComps(t)},t.prototype.binRowComps=function(e){var t,o=this,i={};return e?(t=[],a.Utils.iterateObject(this.rowCompsByIndex,function(e,n){var r=n.getRowNode();a.Utils.exists(r.id)?(i[r.id]=n,delete o.rowCompsByIndex[e]):t.push(e)})):t=Object.keys(this.rowCompsByIndex),this.removeRowComps(t),i},t.prototype.removeRowComps=function(e){var t=this;e.forEach(function(e){t.rowCompsByIndex[e].destroy(),delete t.rowCompsByIndex[e]})},t.prototype.redrawAfterScroll=function(){this.getLockOnRefresh(),this.redraw(null,!1,!0),this.releaseLockOnRefresh()},t.prototype.removeRowCompsNotToDraw=function(e){var t={};e.forEach(function(e){return t[e]=!0});var o=Object.keys(this.rowCompsByIndex),i=a.Utils.filter(o,function(e){return!t[e]});this.removeRowComps(i)},t.prototype.calculateIndexesToDraw=function(){var e=this,t=a.Utils.createArrayOfNumbers(this.firstRenderedRow,this.lastRenderedRow);return a.Utils.iterateObject(this.rowCompsByIndex,function(o,i){var n=Number(o);(n<e.firstRenderedRow||n>e.lastRenderedRow)&&e.keepRowBecauseEditing(i)&&t.push(n)}),t.sort(function(e,t){return e-t}),t},t.prototype.redraw=function(e,t,o){var i=this;void 0===t&&(t=!1),void 0===o&&(o=!1),this.workOutFirstAndLastRowsToRender();var n=this.calculateIndexesToDraw();this.removeRowCompsNotToDraw(n);var r=[],s=[];n.forEach(function(n){var l=i.createOrUpdateRowComp(n,e,t,o);a.Utils.exists(l)&&(s.push(l),a.Utils.pushAll(r,l.getAndClearNextVMTurnFunctions()))}),this.flushContainers(s),a.Utils.executeNextVMTurn(r),o&&!this.gridOptionsWrapper.isSuppressAnimationFrame()?this.beans.taskQueue.addP2Task(this.destroyRowComps.bind(this,e,t)):this.destroyRowComps(e,t),this.checkAngularCompile()},t.prototype.flushContainers=function(e){a.Utils.iterateObject(this.rowContainers,function(e,t){t&&t.flushRowTemplates()}),e.forEach(function(e){return e.afterFlush()})},t.prototype.onDisplayedColumnsChanged=function(){var e=this.columnController.isPinningLeft(),t=this.columnController.isPinningRight();(this.pinningLeft!==e||t!==this.pinningRight)&&(this.pinningLeft=e,this.pinningRight=t,this.gridOptionsWrapper.isEmbedFullWidthRows()&&this.redrawFullWidthEmbeddedRows())},t.prototype.redrawFullWidthEmbeddedRows=function(){var e=[];this.forEachRowComp(function(t,o){if(o.isFullWidth()){var i=o.getRowNode().rowIndex;e.push(i.toString())}}),this.removeRowComps(e),this.redrawAfterScroll()},t.prototype.createOrUpdateRowComp=function(e,t,o,i){var n,r=this.rowCompsByIndex[e];if(r||(n=this.paginationProxy.getRow(e),a.Utils.exists(n)&&a.Utils.exists(t)&&t[n.id]&&(r=t[n.id],t[n.id]=null)),r)r.ensureDomOrder();else{if(n||(n=this.paginationProxy.getRow(e)),!a.Utils.exists(n))return;r=this.createRowComp(n,o,i)}return this.rowCompsByIndex[e]=r,r},t.prototype.destroyRowComps=function(e,t){var o=[];a.Utils.iterateObject(e,function(e,i){i&&(i.destroy(t),a.Utils.pushAll(o,i.getAndClearDelayedDestroyFunctions()))}),a.Utils.executeInAWhile(o)},t.prototype.checkAngularCompile=function(){var e=this;this.gridOptionsWrapper.isAngularCompileRows()&&setTimeout(function(){e.$scope.$apply()},0)},t.prototype.workOutFirstAndLastRowsToRender=function(){var e,t;if(this.paginationProxy.isRowsToRender()){var o=this.paginationProxy.getPageFirstRow(),i=this.paginationProxy.getPageLastRow();if(this.forPrint)e=o,t=i;else{var n=this.paginationProxy?this.paginationProxy.getPixelOffset():0,r=this.gridPanel.getVerticalPixelRange(),s=r.top,a=r.bottom,l=this.paginationProxy.getRowIndexAtPixel(s+n),p=this.paginationProxy.getRowIndexAtPixel(a+n),u=this.gridOptionsWrapper.getRowBuffer();l-=u,p+=u,l<o&&(l=o),p>i&&(p=i),e=l,t=p}}else e=0,t=-1;var c=e!==this.firstRenderedRow,d=t!==this.lastRenderedRow;if(c||d){this.firstRenderedRow=e,this.lastRenderedRow=t;var h={type:g.Events.EVENT_VIEWPORT_CHANGED,firstRow:e,lastRow:t,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(h)}},t.prototype.getFirstVirtualRenderedRow=function(){return this.firstRenderedRow},t.prototype.getLastVirtualRenderedRow=function(){return this.lastRenderedRow},t.prototype.keepRowBecauseEditing=function(e){var t=!1,o=e.getRowNode(),i=this.focusedCellController.isRowNodeFocused(o),n=e.isEditing();return!(!i&&!n||!this.paginationProxy.isRowPresent(o))||t},t.prototype.createRowComp=function(e,t,o){var i=o&&!this.gridOptionsWrapper.isSuppressAnimationFrame(),n=new f.RowComp(this.$scope,this.rowContainers.body,this.rowContainers.pinnedLeft,this.rowContainers.pinnedRight,this.rowContainers.fullWidth,e,this.beans,t,i);return n.init(),n},t.prototype.getRenderedNodes=function(){var e=this.rowCompsByIndex;return Object.keys(e).map(function(t){return e[t].getRowNode()})},t.prototype.navigateToNextCell=function(e,t,o,i,n){for(var r=new O.GridCell({rowIndex:o,floating:n,column:i}),s=r;;){if(s=this.cellNavigationService.getNextCellToFocus(t,s),a.Utils.missing(s))break;if(!this.gridOptionsWrapper.isGroupUseEntireRow())break;if(!this.paginationProxy.getRow(s.rowIndex).group)break}var l=this.gridOptionsWrapper.getNavigateToNextCellFunc();if(a.Utils.exists(l)){var p={key:t,previousCellDef:r,nextCellDef:s?s.getGridCellDef():null,event:e},u=l(p);s=a.Utils.exists(u)?new O.GridCell(u):null}if(s&&(a.Utils.missing(s.floating)&&this.gridPanel.ensureIndexVisible(s.rowIndex),s.column.isPinned()||this.gridPanel.ensureColumnVisible(s.column),this.gridPanel.horizontallyScrollHeaderCenterAndFloatingCenter(),this.animationFrameService.flushAllFrames(),this.focusedCellController.setFocusedCell(s.rowIndex,s.column,s.floating,!0),this.rangeController)){var c=new O.GridCell({rowIndex:s.rowIndex,floating:s.floating,column:s.column});this.rangeController.setRangeToCell(c)}},t.prototype.startEditingCell=function(e,t,o){var i=this.getComponentForCell(e);i&&i.startRowOrCellEdit(t,o)},t.prototype.getComponentForCell=function(e){var t;switch(e.floating){case y.Constants.PINNED_TOP:t=this.floatingTopRowComps[e.rowIndex];break;case y.Constants.PINNED_BOTTOM:t=this.floatingBottomRowComps[e.rowIndex];break;default:t=this.rowCompsByIndex[e.rowIndex]}return t?t.getRenderedCellForColumn(e.column):null},t.prototype.onTabKeyDown=function(e,t){var o=t.shiftKey;this.moveToCellAfter(e,o)&&t.preventDefault()},t.prototype.tabToNextCell=function(e){var t=this.focusedCellController.getFocusedCell();if(a.Utils.missing(t))return!1;var o=this.getComponentForCell(t);return!a.Utils.missing(o)&&this.moveToCellAfter(o,e)},t.prototype.moveToCellAfter=function(e,t){var o=e.isEditing(),i=e.getGridCell(),n=this.findNextCellToFocusOn(i,t,o);return!!a.Utils.exists(n)&&(o?this.gridOptionsWrapper.isFullRowEdit()?this.moveEditToNextRow(e,n):this.moveEditToNextCell(e,n):n.focusCell(!0),!0)},t.prototype.moveEditToNextCell=function(e,t){e.stopEditing(),t.startEditingIfEnabled(null,null,!0),t.focusCell(!1)},t.prototype.moveEditToNextRow=function(e,t){var o=e.getGridCell(),i=t.getGridCell();if(o.rowIndex===i.rowIndex&&o.floating===i.floating)e.setFocusOutOnEditor(),t.setFocusInOnEditor();else{var n=e.getRenderedRow(),r=t.getRenderedRow();e.setFocusOutOnEditor(),n.stopEditing(),r.startRowEditing(),t.setFocusInOnEditor()}t.focusCell()},t.prototype.findNextCellToFocusOn=function(e,t,o){for(var i=e;;){i=this.cellNavigationService.getNextTabbedCell(i,t);var n=this.gridOptionsWrapper.getTabToNextCellFunc();if(a.Utils.exists(n)){var r={backwards:t,editing:o,previousCellDef:e.getGridCellDef(),nextCellDef:i?i.getGridCellDef():null},s=n(r);i=a.Utils.exists(s)?new O.GridCell(s):null}if(!i)return null;a.Utils.missing(i.floating)&&this.gridPanel.ensureIndexVisible(i.rowIndex),i.column.isPinned()||this.gridPanel.ensureColumnVisible(i.column),this.gridPanel.horizontallyScrollHeaderCenterAndFloatingCenter(),this.animationFrameService.flushAllFrames();var l=this.getComponentForCell(i);if(!a.Utils.missing(l)&&((!o||l.isCellEditable())&&!l.isSuppressNavigable())){if(this.rangeController){var p=new O.GridCell({rowIndex:i.rowIndex,floating:i.floating,column:i.column});this.rangeController.setRangeToCell(p)}return l}}},n([m.Autowired("paginationProxy"),r("design:type",S.PaginationProxy)],t.prototype,"paginationProxy",void 0),n([m.Autowired("columnController"),r("design:type",E.ColumnController)],t.prototype,"columnController",void 0),n([m.Autowired("gridOptionsWrapper"),r("design:type",l.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([m.Autowired("gridCore"),r("design:type",C.GridCore)],t.prototype,"gridCore",void 0),n([m.Autowired("gridPanel"),r("design:type",p.GridPanel)],t.prototype,"gridPanel",void 0),n([m.Autowired("$scope"),r("design:type",Object)],t.prototype,"$scope",void 0),n([m.Autowired("expressionService"),r("design:type",u.ExpressionService)],t.prototype,"expressionService",void 0),n([m.Autowired("templateService"),r("design:type",c.TemplateService)],t.prototype,"templateService",void 0),n([m.Autowired("valueService"),r("design:type",d.ValueService)],t.prototype,"valueService",void 0),n([m.Autowired("eventService"),r("design:type",h.EventService)],t.prototype,"eventService",void 0),n([m.Autowired("pinnedRowModel"),r("design:type",P.PinnedRowModel)],t.prototype,"pinnedRowModel",void 0),n([m.Autowired("context"),r("design:type",m.Context)],t.prototype,"context",void 0),n([m.Autowired("loggerFactory"),r("design:type",w.LoggerFactory)],t.prototype,"loggerFactory",void 0),n([m.Autowired("focusedCellController"),r("design:type",R.FocusedCellController)],t.prototype,"focusedCellController",void 0),n([m.Autowired("cellNavigationService"),r("design:type",_.CellNavigationService)],t.prototype,"cellNavigationService",void 0),n([m.Autowired("columnApi"),r("design:type",E.ColumnApi)],t.prototype,"columnApi",void 0),n([m.Autowired("gridApi"),r("design:type",b.GridApi)],t.prototype,"gridApi",void 0),n([m.Autowired("beans"),r("design:type",D.Beans)],t.prototype,"beans",void 0),n([m.Autowired("animationFrameService"),r("design:type",T.AnimationFrameService)],t.prototype,"animationFrameService",void 0),n([m.Optional("rangeController"),r("design:type",Object)],t.prototype,"rangeController",void 0),n([s(0,m.Qualifier("loggerFactory")),r("design:type",Function),r("design:paramtypes",[w.LoggerFactory]),r("design:returntype",void 0)],t.prototype,"agWire",null),n([m.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],t.prototype,"init",null),n([m.PreDestroy,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],t.prototype,"destroy",null),t=n([m.Bean("rowRenderer")],t)}(A.BeanStub);t.RowRenderer=N},function(e,t,o){"use strict";function i(e,t){for(var o=0;o<e.length;o++)for(var i=e[o],r=0;r<i.bindings.length;r++){var s=i.bindings[r];if(n(s,t))return{trappedKeyboardBinding:s,trappedKeyboardBindingGroup:i}}return null}function n(e,t){var o=t.which||t.keyCode;return e.ctlRequired===t.ctrlKey&&e.keyCode===o&&e.altRequired===t.altKey}var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),s=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=this&&this.__param||function(e,t){return function(o,i){t(o,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var p=o(8),u=o(4),c=o(15),d=o(23),h=o(25),f=o(6),g=o(7),y=o(5),v=o(11),m=o(26),C=o(9),E=o(27),w=o(13),R=o(28),_=o(38),O=o(39),A=o(36),S=o(40),b=o(41),P=o(42),D=o(43),T=o(44),N=o(12),F=o(45),L=o(47),x='<div class="ag-header" role="row"><div class="ag-pinned-left-header" role="presentation"></div><div class="ag-pinned-right-header" role="presentation"></div><div class="ag-header-viewport" role="presentation"><div class="ag-header-container" role="presentation"></div></div><div class="ag-header-overlay" role="presentation"></div></div>',G='<div class="ag-floating-top" role="presentation"><div class="ag-pinned-left-floating-top" role="presentation"></div><div class="ag-pinned-right-floating-top" role="presentation"></div><div class="ag-floating-top-viewport" role="presentation"><div class="ag-floating-top-container" role="presentation"></div></div><div class="ag-floating-top-full-width-container" role="presentation"></div></div>',I='<div class="ag-floating-bottom" role="presentation"><div class="ag-pinned-left-floating-bottom" role="presentation"></div><div class="ag-pinned-right-floating-bottom" role="presentation"></div><div class="ag-floating-bottom-viewport" role="presentation"><div class="ag-floating-bottom-container" role="presentation"></div></div><div class="ag-floating-bottom-full-width-container" role="presentation"></div></div>',M='<div class="ag-body" role="presentation"><div class="ag-pinned-left-cols-viewport" role="presentation"><div class="ag-pinned-left-cols-container" role="presentation"></div></div><div class="ag-pinned-right-cols-viewport" role="presentation"><div class="ag-pinned-right-cols-container" role="presentation"></div></div><div class="ag-body-viewport-wrapper" role="presentation"><div class="ag-body-viewport" role="presentation"><div class="ag-body-container" role="presentation"></div></div></div><div class="ag-full-width-viewport" role="presentation"><div class="ag-full-width-container" role="presentation"></div></div></div>',W='<div class="ag-root ag-font-style" role="grid">'+x+G+I+M+"</div>",V='<div class="ag-root ag-font-style" role="grid">'+x+G+M+I+"</div>",H='<div class="ag-root ag-font-style"><div class="ag-header-container"></div><div class="ag-floating-top-container"></div><div class="ag-body-container"></div><div class="ag-floating-bottom-container"></div></div>',U='<div class="ag-overlay-panel" role="presentation"><div class="ag-overlay-wrapper ag-overlay-[OVERLAY_NAME]-wrapper">[OVERLAY_TEMPLATE]</div></div>',B='<span class="ag-overlay-loading-center">[LOADING...]</span>',k='<span class="ag-overlay-no-rows-center">[NO_ROWS_TO_SHOW]</span>',j=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.scrollLeft=-1,t.nextScrollLeft=-1,t.scrollTop=-1,t.nextScrollTop=-1,t.verticalRedrawNeeded=!1,t}return r(t,e),t.prototype.agWire=function(e){this.logger=e.create("GridPanel"),this.forPrint=this.gridOptionsWrapper.isForPrint(),this.autoHeight=this.gridOptionsWrapper.isAutoHeight(),this.scrollWidth=this.gridOptionsWrapper.getScrollbarWidth(),this.enableRtl=this.gridOptionsWrapper.isEnableRtl(),this.loadTemplate(),this.findElements()},t.prototype.getVerticalPixelRange=function(){var e=this.getPrimaryScrollViewport();return{top:e.scrollTop,bottom:e.scrollTop+e.offsetHeight}},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.onRowDataChanged=function(){this.showOrHideOverlay()},t.prototype.showOrHideOverlay=function(){this.paginationProxy.isEmpty()&&!this.gridOptionsWrapper.isSuppressNoRowsOverlay()?this.showNoRowsOverlay():this.hideOverlay()},t.prototype.getLayout=function(){return this.layout},t.prototype.init=function(){this.useAnimationFrame=!this.gridOptionsWrapper.isSuppressAnimationFrame(),this.addEventListeners(),this.addDragListeners(),this.layout=new h.BorderLayout({overlays:{loading:p.Utils.loadTemplate(this.createLoadingOverlayTemplate()),noRows:p.Utils.loadTemplate(this.createNoRowsOverlayTemplate())},center:this.eRoot,dontFill:this.forPrint,fillHorizontalOnly:this.autoHeight,name:"eGridPanel"}),this.layout.addSizeChangeListener(this.setBodyAndHeaderHeights.bind(this)),this.layout.addSizeChangeListener(this.setLeftAndRightBounds.bind(this)),this.addScrollListener(),this.gridOptionsWrapper.isSuppressHorizontalScroll()&&(this.eBodyViewport.style.overflowX="hidden"),this.gridOptionsWrapper.isRowModelDefault()&&!this.gridOptionsWrapper.getRowData()&&this.showLoadingOverlay(),this.setPinnedContainersVisible(),this.setBodyAndHeaderHeights(),this.disableBrowserDragging(),this.addShortcutKeyListeners(),this.addMouseListeners(),this.addKeyboardEvents(),this.addBodyViewportListener(),this.addStopEditingWhenGridLosesFocus(),this.$scope&&this.addAngularApplyCheck(),this.onDisplayedColumnsWidthChanged()},t.prototype.addStopEditingWhenGridLosesFocus=function(){var e=this;this.gridOptionsWrapper.isStopEditingWhenGridLosesFocus()&&this.addDestroyableEventListener(this.eBody,"focusout",function(t){for(var o=t.relatedTarget,i=!1,n=o;p.Utils.exists(n)&&!i;){var r=!!e.gridOptionsWrapper.getDomData(n,P.PopupEditorWrapper.DOM_KEY_POPUP_EDITOR_WRAPPER),s=e.eBody==n;i=r||s,n=n.parentNode}i||e.rowRenderer.stopEditing()})},t.prototype.addAngularApplyCheck=function(){var e=this,t=!1,o=function(){t||(t=!0,setTimeout(function(){t=!1,e.$scope.$apply()},0))};this.addDestroyableEventListener(this.eventService,v.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,o),this.addDestroyableEventListener(this.eventService,v.Events.EVENT_VIRTUAL_COLUMNS_CHANGED,o)},t.prototype.disableBrowserDragging=function(){this.eRoot.addEventListener("dragstart",function(e){if(e.target instanceof HTMLImageElement)return e.preventDefault(),!1})},t.prototype.addEventListeners=function(){this.addDestroyableEventListener(this.eventService,v.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addDestroyableEventListener(this.eventService,v.Events.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this)),this.addDestroyableEventListener(this.eventService,v.Events.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.addDestroyableEventListener(this.eventService,v.Events.EVENT_PINNED_ROW_DATA_CHANGED,this.setBodyAndHeaderHeights.bind(this)),this.addDestroyableEventListener(this.eventService,v.Events.EVENT_ROW_DATA_CHANGED,this.onRowDataChanged.bind(this)),this.addDestroyableEventListener(this.eventService,v.Events.EVENT_ROW_DATA_UPDATED,this.onRowDataChanged.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,u.GridOptionsWrapper.PROP_HEADER_HEIGHT,this.setBodyAndHeaderHeights.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,u.GridOptionsWrapper.PROP_PIVOT_HEADER_HEIGHT,this.setBodyAndHeaderHeights.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,u.GridOptionsWrapper.PROP_GROUP_HEADER_HEIGHT,this.setBodyAndHeaderHeights.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,u.GridOptionsWrapper.PROP_PIVOT_GROUP_HEADER_HEIGHT,this.setBodyAndHeaderHeights.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,u.GridOptionsWrapper.PROP_FLOATING_FILTERS_HEIGHT,this.setBodyAndHeaderHeights.bind(this))},t.prototype.addDragListeners=function(){var e=this;if(!this.forPrint&&this.gridOptionsWrapper.isEnableRangeSelection()&&!p.Utils.missing(this.rangeController)){[this.ePinnedLeftColsContainer,this.ePinnedRightColsContainer,this.eBodyContainer,this.eFloatingTop,this.eFloatingBottom].forEach(function(t){var o={dragStartPixels:0,eElement:t,onDragStart:e.rangeController.onDragStart.bind(e.rangeController),onDragStop:e.rangeController.onDragStop.bind(e.rangeController),onDragging:e.rangeController.onDragging.bind(e.rangeController)};e.dragService.addDragSource(o),e.addDestroyFunc(function(){return e.dragService.removeDragSource(o)})})}},t.prototype.addMouseListeners=function(){var e=this;["click","mousedown","dblclick","contextmenu","mouseover","mouseout"].forEach(function(t){var o=e.processMouseEvent.bind(e,t);e.eAllCellContainers.forEach(function(i){return e.addDestroyableEventListener(i,t,o)})})},t.prototype.addKeyboardEvents=function(){var e=this;["keydown","keypress"].forEach(function(t){var o=e.processKeyboardEvent.bind(e,t);e.eAllCellContainers.forEach(function(i){e.addDestroyableEventListener(i,t,o)})})},t.prototype.addBodyViewportListener=function(){var e=this;if(!this.gridOptionsWrapper.isForPrint()){var t=function(t){var o=p.Utils.getTarget(t);o!==e.eBodyViewport&&o!==e.ePinnedLeftColsViewport&&o!==e.ePinnedRightColsViewport||(e.onContextMenu(t),e.preventDefaultOnContextMenu(t))};this.addDestroyableEventListener(this.eBodyViewport,"contextmenu",t),this.addDestroyableEventListener(this.ePinnedRightColsViewport,"contextmenu",t),this.addDestroyableEventListener(this.ePinnedLeftColsViewport,"contextmenu",t)}},t.prototype.getRowForEvent=function(e){for(var t=p.Utils.getTarget(e);t;){var o=this.gridOptionsWrapper.getDomData(t,L.RowComp.DOM_DATA_KEY_RENDERED_ROW);if(o)return o;t=t.parentElement}return null},t.prototype.processKeyboardEvent=function(e,t){var o=this.mouseEventService.getRenderedCellForEvent(t);if(o)switch(e){case"keydown":var n=[C.Constants.DIAGONAL_SCROLL_KEYS,C.Constants.HORIZONTAL_SCROLL_KEYS,C.Constants.VERTICAL_SCROLL_KEYS],r=i(n,t);r?this.handlePageScrollingKey(r.trappedKeyboardBindingGroup.id,r.trappedKeyboardBinding.id,t):o.onKeyDown(t);break;case"keypress":o.onKeyPress(t)}},t.prototype.handlePageScrollingKey=function(e,t,o){switch(e){case C.Constants.DIAGONAL_SCROLL_KEYS_ID:this.pageDiagonally(t);break;case C.Constants.VERTICAL_SCROLL_KEYS_ID:this.pageVertically(t);break;case C.Constants.HORIZONTAL_SCROLL_KEYS_ID:this.pageHorizontally(t)}o.preventDefault()},t.prototype.pageHorizontally=function(e){var t=this.columnController.getAllDisplayedColumns(),o=e===C.Constants.KEY_CTRL_LEFT_NAME?t[0]:t[t.length-1],i={type:z.HORIZONTAL,columnToScrollTo:o,columnToFocus:o};this.performScroll(i)},t.prototype.pageDiagonally=function(e){var t=this.getPrimaryScrollViewport().offsetHeight,o=e===C.Constants.KEY_PAGE_HOME_NAME?0:t,i=e===C.Constants.KEY_PAGE_HOME_NAME?0:this.paginationProxy.getPageLastRow(),n=this.paginationProxy.getRow(i),r=this.columnController.getAllDisplayedColumns(),s=e===C.Constants.KEY_PAGE_HOME_NAME?r[0]:r[r.length-1],a={focusedRowTopDelta:o,type:z.DIAGONAL,rowToScrollTo:n,columnToScrollTo:s};this.performScroll(a)},t.prototype.pageVertically=function(e){if(e===C.Constants.KEY_CTRL_UP_NAME)return void this.performScroll({rowToScrollTo:this.paginationProxy.getRow(0),focusedRowTopDelta:0,type:z.VERTICAL});if(e===C.Constants.KEY_CTRL_DOWN_NAME)return void this.performScroll({rowToScrollTo:this.paginationProxy.getRow(this.paginationProxy.getPageLastRow()),focusedRowTopDelta:this.getPrimaryScrollViewport().offsetHeight,type:z.VERTICAL});var t=this.focusedCellController.getFocusedCell(),o=this.paginationProxy.getRow(t.rowIndex),i=o.rowTop,n=i-this.getPrimaryScrollViewport().scrollTop-this.paginationProxy.getPixelOffset(),r=this.getPrimaryScrollViewport().scrollTop,s=this.paginationProxy.getRowIndexAtPixel(r+this.paginationProxy.getPixelOffset()),a=this.paginationProxy.getRow(s),l=this.getPrimaryScrollViewport().offsetHeight,p=this.paginationProxy.getCurrentPageHeight(),u=p<l?p:l,c=a.rowTop+a.rowHeight,d=e==C.Constants.KEY_PAGE_DOWN_NAME?u+c:c-u,h=this.paginationProxy.getRow(this.paginationProxy.getRowIndexAtPixel(d)),f={rowToScrollTo:h,focusedRowTopDelta:n,type:z.VERTICAL};this.performScroll(f)},t.prototype.scrollToTop=function(){this.forPrint||(this.getPrimaryScrollViewport().scrollTop=0)},t.prototype.performScroll=function(e){var t,o,i,n,r=this.focusedCellController.getFocusedCell();switch(e.type){case z.VERTICAL:t=e,this.ensureIndexVisible(t.rowToScrollTo.rowIndex),n=t.rowToScrollTo.rowTop-this.paginationProxy.getPixelOffset(),this.getPrimaryScrollViewport().scrollTop=n;break;case z.DIAGONAL:o=e,this.ensureIndexVisible(o.rowToScrollTo.rowIndex),n=o.rowToScrollTo.rowTop-this.paginationProxy.getPixelOffset(),this.getPrimaryScrollViewport().scrollTop=n,this.getPrimaryScrollViewport().scrollLeft=o.columnToScrollTo.getLeft();break;case z.HORIZONTAL:i=e,this.getPrimaryScrollViewport().scrollLeft=i.columnToScrollTo.getLeft()}var s={onlyBody:!0,suppressKeepFocus:!0};this.rowRenderer.redrawAfterModelUpdate(s);var a,l;switch(e.type){case z.VERTICAL:a=this.paginationProxy.getRowIndexAtPixel(n+this.paginationProxy.getPixelOffset()+t.focusedRowTopDelta),l=r.column;break;case z.DIAGONAL:a=this.paginationProxy.getRowIndexAtPixel(n+this.paginationProxy.getPixelOffset()+o.focusedRowTopDelta),l=o.columnToScrollTo;break;case z.HORIZONTAL:a=r.rowIndex,l=i.columnToScrollTo}this.focusedCellController.setFocusedCell(a,l,null,!0)},t.prototype.processMouseEvent=function(e,t){var o=this.mouseEventService.getRenderedCellForEvent(t);o&&o.onMouseEvent(e,t);var i=this.getRowForEvent(t);i&&i.onMouseEvent(e,t),this.preventDefaultOnContextMenu(t)},t.prototype.onContextMenu=function(e){(this.gridOptionsWrapper.isAllowContextMenuWithControlKey()||!e.ctrlKey&&!e.metaKey)&&this.contextMenuFactory&&!this.gridOptionsWrapper.isSuppressContextMenu()&&(this.contextMenuFactory.showMenu(null,null,null,e),e.preventDefault())},t.prototype.preventDefaultOnContextMenu=function(e){this.gridOptionsWrapper.isSuppressMiddleClickScrolls()&&2===e.which&&e.preventDefault()},t.prototype.addShortcutKeyListeners=function(){var e=this;this.eAllCellContainers.forEach(function(t){t.addEventListener("keydown",function(t){var o=e.mouseEventService.getRenderedCellForEvent(t);if((!o||!o.isEditing())&&e.mouseEventService.isEventFromThisGrid(t)&&(t.ctrlKey||t.metaKey))switch(t.which){case C.Constants.KEY_A:return e.onCtrlAndA(t);case C.Constants.KEY_C:return e.onCtrlAndC(t);case C.Constants.KEY_V:return e.onCtrlAndV(t);case C.Constants.KEY_D:return e.onCtrlAndD(t)}})})},t.prototype.onCtrlAndA=function(e){if(this.rangeController&&this.paginationProxy.isRowsToRender()){var t=void 0,o=void 0,i=void 0;o=this.pinnedRowModel.isEmpty(C.Constants.PINNED_TOP)?null:C.Constants.PINNED_TOP,this.pinnedRowModel.isEmpty(C.Constants.PINNED_BOTTOM)?(i=null,t=this.paginationProxy.getTotalRowCount()-1):(i=C.Constants.PINNED_BOTTOM,t=this.pinnedRowModel.getPinnedBottomRowData().length=1);var n=this.columnController.getAllDisplayedColumns();if(p.Utils.missingOrEmpty(n))return;this.rangeController.setRange({rowStart:0,floatingStart:o,rowEnd:t,floatingEnd:i,columnStart:n[0],columnEnd:n[n.length-1]})}return e.preventDefault(),!1},t.prototype.onCtrlAndC=function(e){if(this.clipboardService){var t=this.focusedCellController.getFocusedCell();return this.clipboardService.copyToClipboard(),e.preventDefault(),t&&this.focusedCellController.setFocusedCell(t.rowIndex,t.column,t.floating,!0),!1}},t.prototype.onCtrlAndV=function(e){if(this.rangeController)return this.clipboardService.pasteFromClipboard(),!1},t.prototype.onCtrlAndD=function(e){if(this.clipboardService)return this.clipboardService.copyRangeDown(),e.preventDefault(),!1},t.prototype.createOverlayTemplate=function(e,t,o){var i=U.replace("[OVERLAY_NAME]",e);return i=o?i.replace("[OVERLAY_TEMPLATE]",o):i.replace("[OVERLAY_TEMPLATE]",t)},t.prototype.createLoadingOverlayTemplate=function(){var e=this.gridOptionsWrapper.getOverlayLoadingTemplate(),t=this.createOverlayTemplate("loading",B,e),o=this.gridOptionsWrapper.getLocaleTextFunc();return t.replace("[LOADING...]",o("loadingOoo","Loading..."))},t.prototype.createNoRowsOverlayTemplate=function(){var e=this.gridOptionsWrapper.getOverlayNoRowsTemplate(),t=this.createOverlayTemplate("no-rows",k,e),o=this.gridOptionsWrapper.getLocaleTextFunc();return t.replace("[NO_ROWS_TO_SHOW]",o("noRowsToShow","No Rows To Show"))},t.prototype.ensureIndexVisible=function(e){if(!this.gridOptionsWrapper.isForPrint()){this.logger.log("ensureIndexVisible: "+e);var t=this.paginationProxy.getTotalRowCount();if("number"!=typeof e||e<0||e>=t)return void console.warn("invalid row index for ensureIndexVisible: "+e);this.paginationProxy.goToPageWithIndex(e);var o=this.paginationProxy.getRow(e),i=this.paginationProxy.getPixelOffset(),n=o.rowTop-i,r=n+o.rowHeight,s=this.getVerticalPixelRange(),a=s.top,l=s.bottom;this.isHorizontalScrollShowing()&&(l-=this.scrollWidth);var p=a>n,u=l<r,c=this.getPrimaryScrollViewport();if(p)c.scrollTop=n,this.rowRenderer.redrawAfterScroll();else if(u){var d=l-a,h=r-d;c.scrollTop=h,this.rowRenderer.redrawAfterScroll()}}},t.prototype.getPrimaryScrollViewport=function(){return this.enableRtl&&this.columnController.isPinningLeft()?this.ePinnedLeftColsViewport:!this.enableRtl&&this.columnController.isPinningRight()?this.ePinnedRightColsViewport:this.eBodyViewport},t.prototype.getCenterWidth=function(){return this.eBodyViewport.clientWidth},t.prototype.isHorizontalScrollShowing=function(){return p.Utils.isHorizontalScrollShowing(this.eBodyViewport)},t.prototype.isVerticalScrollShowing=function(){return this.columnController.isPinningRight()?p.Utils.isVerticalScrollShowing(this.ePinnedRightColsViewport):p.Utils.isVerticalScrollShowing(this.eBodyViewport)},t.prototype.isBodyVerticalScrollShowing=function(){return!(!this.enableRtl&&this.columnController.isPinningRight())&&((!this.enableRtl||!this.columnController.isPinningLeft())&&p.Utils.isVerticalScrollShowing(this.eBodyViewport))},t.prototype.periodicallyCheck=function(){this.forPrint||(this.setBottomPaddingOnPinnedRight(),this.setMarginOnFullWidthCellContainer(),this.setScrollShowing())},t.prototype.setScrollShowing=function(){var e={vBody:!1,hBody:!1,vPinnedLeft:!1,vPinnedRight:!1};this.enableRtl?this.columnController.isPinningLeft()?e.vPinnedLeft=!this.forPrint&&p.Utils.isVerticalScrollShowing(this.ePinnedLeftColsViewport):e.vBody=p.Utils.isVerticalScrollShowing(this.eBodyViewport):this.columnController.isPinningRight()?e.vPinnedRight=!this.forPrint&&p.Utils.isVerticalScrollShowing(this.ePinnedRightColsViewport):e.vBody=p.Utils.isVerticalScrollShowing(this.eBodyViewport),e.hBody=p.Utils.isHorizontalScrollShowing(this.eBodyViewport),this.scrollVisibleService.setScrollsVisible(e)},t.prototype.setBottomPaddingOnPinnedRight=function(){if(!this.forPrint&&this.columnController.isPinningRight()){var e=this.eBodyViewport.clientWidth<this.eBodyViewport.scrollWidth;this.ePinnedRightColsContainer.style.marginBottom=e?this.scrollWidth+"px":""}},t.prototype.setMarginOnFullWidthCellContainer=function(){this.forPrint||(this.enableRtl?this.isVerticalScrollShowing()?this.eFullWidthCellViewport.style.borderLeft=this.scrollWidth+"px solid transparent":this.eFullWidthCellViewport.style.borderLeft="":this.isVerticalScrollShowing()?this.eFullWidthCellViewport.style.borderRight=this.scrollWidth+"px solid transparent":this.eFullWidthCellViewport.style.borderRight="",this.isHorizontalScrollShowing()?this.eFullWidthCellViewport.style.borderBottom=this.scrollWidth+"px solid transparent":this.eFullWidthCellViewport.style.borderBottom="")},t.prototype.ensureColumnVisible=function(e){if(!this.gridOptionsWrapper.isForPrint()){var t=this.columnController.getGridColumn(e);if(t){if(t.isPinned())return void console.warn("calling ensureIndexVisible on a "+t.getPinned()+" pinned column doesn't make sense for column "+t.getColId());if(!this.columnController.isColumnDisplayed(t))return void console.warn("column is not currently visible");var o,i,n=t.getLeft(),r=n+t.getActualWidth(),s=this.eBodyViewport.clientWidth,a=this.getBodyViewportScrollLeft(),l=this.columnController.getBodyContainerWidth();this.enableRtl?(o=l-a-s,i=l-a):(o=a,i=s+a);var p=o>n,u=i<r;if(p)if(this.enableRtl){var c=l-s-n;this.setBodyViewportScrollLeft(c)}else this.setBodyViewportScrollLeft(n);else if(u)if(this.enableRtl){var c=l-r;this.setBodyViewportScrollLeft(c)}else{var c=r-s;this.setBodyViewportScrollLeft(c)}this.setLeftAndRightBounds()}}},t.prototype.showLoadingOverlay=function(){this.gridOptionsWrapper.isSuppressLoadingOverlay()||this.layout.showOverlay("loading")},t.prototype.showNoRowsOverlay=function(){this.gridOptionsWrapper.isSuppressNoRowsOverlay()||this.layout.showOverlay("noRows")},t.prototype.hideOverlay=function(){this.layout.hideOverlay()},t.prototype.getWidthForSizeColsToFit=function(){var e=this.eBody.clientWidth;return this.isVerticalScrollShowing()&&(e-=this.scrollWidth),e},t.prototype.sizeColumnsToFit=function(e){var t=this,o=this.getWidthForSizeColsToFit();o>0?this.columnController.sizeColumnsToFit(o):void 0===e?setTimeout(function(){t.sizeColumnsToFit(100)},0):100===e?setTimeout(function(){t.sizeColumnsToFit(-1)},100):console.log("ag-Grid: tried to call sizeColumnsToFit() but the grid is coming back with zero width, maybe the grid is not visible yet on the screen?")},t.prototype.getBodyContainer=function(){return this.eBodyContainer},t.prototype.getDropTargetBodyContainers=function(){return this.forPrint?[this.eBodyContainer,this.eFloatingTopContainer,this.eFloatingBottomContainer]:[this.eBodyViewport,this.eFloatingTopViewport,this.eFloatingBottomViewport]},t.prototype.getBodyViewport=function(){return this.eBodyViewport},t.prototype.getDropTargetLeftContainers=function(){return this.forPrint?[]:[this.ePinnedLeftColsViewport,this.ePinnedLeftFloatingBottom,this.ePinnedLeftFloatingTop]},t.prototype.getDropTargetPinnedRightContainers=function(){return this.forPrint?[]:[this.ePinnedRightColsViewport,this.ePinnedRightFloatingBottom,this.ePinnedRightFloatingTop]},t.prototype.getHeaderContainer=function(){return this.eHeaderContainer},t.prototype.getHeaderOverlay=function(){return this.eHeaderOverlay},t.prototype.getRoot=function(){return this.eRoot},t.prototype.getPinnedLeftHeader=function(){return this.ePinnedLeftHeader},t.prototype.getPinnedRightHeader=function(){return this.ePinnedRightHeader},t.prototype.queryHtmlElement=function(e){return this.eRoot.querySelector(e)},t.prototype.loadTemplate=function(){var e;e=this.forPrint?H:this.autoHeight?V:W,this.eRoot=p.Utils.loadTemplate(e)},t.prototype.findElements=function(){var e=this;if(this.forPrint){this.eHeaderContainer=this.queryHtmlElement(".ag-header-container"),this.eBodyContainer=this.queryHtmlElement(".ag-body-container"),this.eFloatingTopContainer=this.queryHtmlElement(".ag-floating-top-container"),this.eFloatingBottomContainer=this.queryHtmlElement(".ag-floating-bottom-container"),this.eAllCellContainers=[this.eBodyContainer,this.eFloatingTopContainer,this.eFloatingBottomContainer];var t={body:new S.RowContainerComponent({eContainer:this.eBodyContainer}),fullWidth:null,pinnedLeft:null,pinnedRight:null,floatingTop:new S.RowContainerComponent({eContainer:this.eFloatingTopContainer}),floatingTopPinnedLeft:null,floatingTopPinnedRight:null,floatingTopFullWidth:null,floatingBottom:new S.RowContainerComponent({eContainer:this.eFloatingBottomContainer}),floatingBottomPinnedLeft:null,floatingBottomPinnedRight:null,floatingBottomFullWith:null};this.rowContainerComponents=t,t.fullWidth=t.body,t.floatingBottomFullWith=t.floatingBottom,t.floatingTopFullWidth=t.floatingTop}else this.eBody=this.queryHtmlElement(".ag-body"),this.eBodyContainer=this.queryHtmlElement(".ag-body-container"),this.eBodyViewport=this.queryHtmlElement(".ag-body-viewport"),this.eBodyViewportWrapper=this.queryHtmlElement(".ag-body-viewport-wrapper"),this.eFullWidthCellContainer=this.queryHtmlElement(".ag-full-width-container"),this.eFullWidthCellViewport=this.queryHtmlElement(".ag-full-width-viewport"),this.ePinnedLeftColsContainer=this.queryHtmlElement(".ag-pinned-left-cols-container"),this.ePinnedRightColsContainer=this.queryHtmlElement(".ag-pinned-right-cols-container"),this.ePinnedLeftColsViewport=this.queryHtmlElement(".ag-pinned-left-cols-viewport"),this.ePinnedRightColsViewport=this.queryHtmlElement(".ag-pinned-right-cols-viewport"),this.ePinnedLeftHeader=this.queryHtmlElement(".ag-pinned-left-header"),this.ePinnedRightHeader=this.queryHtmlElement(".ag-pinned-right-header"),this.eHeader=this.queryHtmlElement(".ag-header"),this.eHeaderContainer=this.queryHtmlElement(".ag-header-container"),this.eHeaderOverlay=this.queryHtmlElement(".ag-header-overlay"),this.eHeaderViewport=this.queryHtmlElement(".ag-header-viewport"),this.eFloatingTop=this.queryHtmlElement(".ag-floating-top"),this.ePinnedLeftFloatingTop=this.queryHtmlElement(".ag-pinned-left-floating-top"),this.ePinnedRightFloatingTop=this.queryHtmlElement(".ag-pinned-right-floating-top"),this.eFloatingTopContainer=this.queryHtmlElement(".ag-floating-top-container"),this.eFloatingTopViewport=this.queryHtmlElement(".ag-floating-top-viewport"),this.eFloatingTopFullWidthCellContainer=this.queryHtmlElement(".ag-floating-top-full-width-container"),this.eFloatingBottom=this.queryHtmlElement(".ag-floating-bottom"),this.ePinnedLeftFloatingBottom=this.queryHtmlElement(".ag-pinned-left-floating-bottom"),this.ePinnedRightFloatingBottom=this.queryHtmlElement(".ag-pinned-right-floating-bottom"),this.eFloatingBottomContainer=this.queryHtmlElement(".ag-floating-bottom-container"),this.eFloatingBottomViewport=this.queryHtmlElement(".ag-floating-bottom-viewport"),this.eFloatingBottomFullWidthCellContainer=this.queryHtmlElement(".ag-floating-bottom-full-width-container"),this.eAllCellContainers=[this.ePinnedLeftColsContainer,this.ePinnedRightColsContainer,this.eBodyContainer,this.eFloatingTop,this.eFloatingBottom,this.eFullWidthCellContainer],this.rowContainerComponents={body:new S.RowContainerComponent({eContainer:this.eBodyContainer,eViewport:this.eBodyViewport}),fullWidth:new S.RowContainerComponent({eContainer:this.eFullWidthCellContainer,hideWhenNoChildren:!0,eViewport:this.eFullWidthCellViewport}),pinnedLeft:new S.RowContainerComponent({eContainer:this.ePinnedLeftColsContainer,eViewport:this.ePinnedLeftColsViewport}),pinnedRight:new S.RowContainerComponent({eContainer:this.ePinnedRightColsContainer,eViewport:this.ePinnedRightColsViewport}),floatingTop:new S.RowContainerComponent({eContainer:this.eFloatingTopContainer}),floatingTopPinnedLeft:new S.RowContainerComponent({eContainer:this.ePinnedLeftFloatingTop}),floatingTopPinnedRight:new S.RowContainerComponent({eContainer:this.ePinnedRightFloatingTop}),floatingTopFullWidth:new S.RowContainerComponent({eContainer:this.eFloatingTopFullWidthCellContainer,hideWhenNoChildren:!0}),floatingBottom:new S.RowContainerComponent({eContainer:this.eFloatingBottomContainer}),floatingBottomPinnedLeft:new S.RowContainerComponent({eContainer:this.ePinnedLeftFloatingBottom}),floatingBottomPinnedRight:new S.RowContainerComponent({eContainer:this.ePinnedRightFloatingBottom}),floatingBottomFullWith:new S.RowContainerComponent({eContainer:this.eFloatingBottomFullWidthCellContainer,hideWhenNoChildren:!0})},this.addMouseWheelEventListeners();p.Utils.iterateObject(this.rowContainerComponents,function(t,o){o&&e.context.wireBean(o)})},t.prototype.getRowContainers=function(){return this.rowContainerComponents},t.prototype.addMouseWheelEventListeners=function(){this.addDestroyableEventListener(this.eBodyViewport,"mousewheel",this.centerMouseWheelListener.bind(this)),this.addDestroyableEventListener(this.eBodyViewport,"DOMMouseScroll",this.centerMouseWheelListener.bind(this)),this.enableRtl?(this.addDestroyableEventListener(this.ePinnedRightColsViewport,"mousewheel",this.genericMouseWheelListener.bind(this)),this.addDestroyableEventListener(this.ePinnedRightColsViewport,"DOMMouseScroll",this.genericMouseWheelListener.bind(this))):(this.addDestroyableEventListener(this.ePinnedLeftColsViewport,"mousewheel",this.genericMouseWheelListener.bind(this)),this.addDestroyableEventListener(this.ePinnedLeftColsViewport,"DOMMouseScroll",this.genericMouseWheelListener.bind(this)))},t.prototype.getHeaderViewport=function(){return this.eHeaderViewport},t.prototype.centerMouseWheelListener=function(e){if(!this.isBodyVerticalScrollActive()){var t=this.enableRtl?this.ePinnedLeftColsViewport:this.ePinnedRightColsViewport;return this.generalMouseWheelListener(e,t)}},t.prototype.genericMouseWheelListener=function(e){var t;return t=this.isBodyVerticalScrollActive()?this.eBodyViewport:this.enableRtl?this.ePinnedLeftColsViewport:this.ePinnedRightColsViewport,this.generalMouseWheelListener(e,t)},t.prototype.generalMouseWheelListener=function(e,t){var o=p.Utils.normalizeWheel(e);if(Math.abs(o.pixelX)>Math.abs(o.pixelY)){var i=this.eBodyViewport.scrollLeft+o.pixelX;this.eBodyViewport.scrollLeft=i}else{var n=t.scrollTop+o.pixelY;t.scrollTop=n}return this.gridOptionsWrapper.isSuppressPreventDefaultOnMouseWheel()||e.preventDefault(),!1},t.prototype.onDisplayedColumnsChanged=function(){this.setPinnedContainersVisible(),this.setBodyAndHeaderHeights(),this.setLeftAndRightBounds()},t.prototype.onDisplayedColumnsWidthChanged=function(){this.setWidthsOfContainers(),this.setLeftAndRightBounds(),this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()},t.prototype.onScrollVisibilityChanged=function(){this.setWidthsOfContainers()},t.prototype.setWidthsOfContainers=function(){var e=this.columnController.getBodyContainerWidth()+"px";this.eBodyContainer.style.width=e,this.forPrint||(this.eFloatingBottomContainer.style.width=e,this.eFloatingTopContainer.style.width=e,this.setPinnedLeftWidth(),this.setPinnedRightWidth())},t.prototype.setPinnedLeftWidth=function(){var e=this.scrollVisibleService.getPinnedLeftWidth()+"px",t=this.scrollVisibleService.getPinnedLeftWithScrollWidth()+"px";this.ePinnedLeftColsViewport.style.width=t,this.eBodyViewportWrapper.style.marginLeft=t,this.ePinnedLeftFloatingBottom.style.width=t,this.ePinnedLeftFloatingTop.style.width=t,this.ePinnedLeftColsContainer.style.width=e},t.prototype.setPinnedRightWidth=function(){var e=this.scrollVisibleService.getPinnedRightWidth()+"px",t=this.scrollVisibleService.getPinnedRightWithScrollWidth()+"px";this.ePinnedRightColsViewport.style.width=t,this.eBodyViewportWrapper.style.marginRight=t,this.ePinnedRightFloatingBottom.style.width=t,this.ePinnedRightFloatingTop.style.width=t,this.ePinnedRightColsContainer.style.width=e},t.prototype.setPinnedContainersVisible=function(){if(!this.forPrint){var e=!1,t=Math.max(this.eBodyViewport.scrollTop,this.ePinnedLeftColsViewport.scrollTop,this.ePinnedRightColsViewport.scrollTop),o=this.columnController.isPinningLeft();o!==this.pinningLeft&&(this.pinningLeft=o,this.ePinnedLeftHeader.style.display=o?"inline-block":"none",this.ePinnedLeftColsViewport.style.display=o?"inline":"none",e=!0);var i=this.columnController.isPinningRight();if(i!==this.pinningRight&&(this.pinningRight=i,this.ePinnedRightHeader.style.display=i?"inline-block":"none",this.ePinnedRightColsViewport.style.display=i?"inline":"none",e=!0),e){var n=this.isBodyVerticalScrollActive();this.eBodyViewport.style.overflowY=n?"auto":"hidden",n?this.setFakeScroll(this.eBodyContainer,0):this.eBodyViewport.scrollTop=0;this.getPrimaryScrollViewport().scrollTop=t,this.fakeVerticalScroll(t)}}},t.prototype.setBodyAndHeaderHeights=function(){if(!this.forPrint){var e=this.layout.getCentreHeight();if(e){var t,o,i,n=this.columnController.getHeaderRowCount(),r=0;this.columnController.isPivotMode()?(p.Utils.removeCssClass(this.eHeader,"ag-pivot-off"),p.Utils.addCssClass(this.eHeader,"ag-pivot-on"),r=0,o=this.gridOptionsWrapper.getPivotGroupHeaderHeight(),i=this.gridOptionsWrapper.getPivotHeaderHeight()):(p.Utils.removeCssClass(this.eHeader,"ag-pivot-on"),p.Utils.addCssClass(this.eHeader,"ag-pivot-off"),this.gridOptionsWrapper.isFloatingFilter()&&n++,r=this.gridOptionsWrapper.isFloatingFilter()?1:0,o=this.gridOptionsWrapper.getGroupHeaderHeight(),i=this.gridOptionsWrapper.getHeaderHeight());var s=1+r,a=n-s;if(t=r*this.gridOptionsWrapper.getFloatingFiltersHeight(),t+=a*o,t+=i,this.eHeader.style.height=t+"px",!this.autoHeight){var l=this.pinnedRowModel.getPinnedTopTotalHeight(),u=t+l,c=this.pinnedRowModel.getPinnedBottomTotalHeight(),d=e-c,h=e-t-c-l;if(this.eBody.style.top=u+"px",this.eBody.style.height=h+"px",this.eFloatingTop.style.top=t+"px",this.eFloatingTop.style.height=l+"px",this.eFloatingBottom.style.height=c+"px",this.eFloatingBottom.style.top=d+"px",this.ePinnedLeftColsViewport.style.height=h+"px",this.ePinnedRightColsViewport.style.height=h+"px",this.bodyHeight!==h){this.bodyHeight=h;var f={type:v.Events.EVENT_BODY_HEIGHT_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(f)}}}}},t.prototype.getBodyHeight=function(){return this.bodyHeight},t.prototype.setHorizontalScrollPosition=function(e){this.eBodyViewport.scrollLeft=e,this.nextScrollLeft!==e&&(this.nextScrollLeft=e,this.doHorizontalScroll())},t.prototype.scrollHorizontally=function(e){var t=this.eBodyViewport.scrollLeft;return this.setHorizontalScrollPosition(t+e),this.eBodyViewport.scrollLeft-t},t.prototype.addScrollListener=function(){var e=this;if(!this.forPrint){this.addDestroyableEventListener(this.eBodyViewport,"scroll",this.onBodyScroll.bind(this));var t=this.onVerticalScroll.bind(this,this.ePinnedLeftColsViewport),o=this.onVerticalScroll.bind(this,this.ePinnedRightColsViewport);if(this.enableRtl){this.addDestroyableEventListener(this.ePinnedLeftColsViewport,"scroll",t);var i=function(){return e.ePinnedRightColsViewport.scrollTop=0};this.addDestroyableEventListener(this.ePinnedRightColsViewport,"scroll",i)}else{this.addDestroyableEventListener(this.ePinnedRightColsViewport,"scroll",o);var n=function(){return e.ePinnedLeftColsViewport.scrollTop=0};this.addDestroyableEventListener(this.ePinnedLeftColsViewport,"scroll",n)}var r=function(){e.getPrimaryScrollViewport()!==e.eBodyViewport&&(e.eBodyViewport.scrollTop=0)};this.addDestroyableEventListener(this.eBodyViewport,"scroll",r),this.addIEPinFix(o,t)}},t.prototype.onBodyScroll=function(){this.onBodyHorizontalScroll(),this.onBodyVerticalScroll()},t.prototype.onBodyHorizontalScroll=function(){var e=this.eBodyViewport.scrollLeft;this.nextScrollLeft!==e&&(this.nextScrollLeft=e,this.useAnimationFrame?this.animationFrameService.schedule():this.doHorizontalScroll())},t.prototype.doHorizontalScroll=function(){this.scrollLeft=this.nextScrollLeft;var e={type:v.Events.EVENT_BODY_SCROLL,api:this.gridApi,columnApi:this.columnApi,direction:"horizontal",left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(e),this.horizontallyScrollHeaderCenterAndFloatingCenter(),this.setLeftAndRightBounds()},t.prototype.onBodyVerticalScroll=function(){this.isBodyVerticalScrollActive()&&this.onVerticalScroll(this.eBodyViewport)},t.prototype.onVerticalScroll=function(e){var t=e.scrollTop;this.useAnimationFrame?this.nextScrollTop!==t&&(this.nextScrollTop=t,this.animationFrameService.schedule()):t!==this.scrollTop&&(this.scrollTop=t,this.fakeVerticalScroll(t),this.redrawRowsAfterScroll())},t.prototype.executeFrame=function(){return this.scrollLeft!==this.nextScrollLeft?(this.doHorizontalScroll(),!0):this.scrollTop!==this.nextScrollTop?(this.scrollTop=this.nextScrollTop,this.fakeVerticalScroll(this.scrollTop),this.verticalRedrawNeeded=!0,!0):!!this.verticalRedrawNeeded&&(this.redrawRowsAfterScroll(),this.verticalRedrawNeeded=!1,!0)},t.prototype.redrawRowsAfterScroll=function(){var e={type:v.Events.EVENT_BODY_SCROLL,direction:"vertical",api:this.gridApi,columnApi:this.columnApi,left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(e),this.rowRenderer.redrawAfterScroll()},t.prototype.isBodyVerticalScrollActive=function(){var e=this.columnController.isPinningRight(),t=this.columnController.isPinningLeft();return this.enableRtl?!t:!e},t.prototype.addIEPinFix=function(e,t){var o=this,i=function(){o.columnController.isPinningRight()&&setTimeout(function(){o.enableRtl?t():e()},0)};this.addDestroyableEventListener(this.eventService,v.Events.EVENT_MODEL_UPDATED,i)},t.prototype.setLeftAndRightBounds=function(){if(!this.gridOptionsWrapper.isForPrint()){var e=this.eBodyViewport.clientWidth,t=this.getBodyViewportScrollLeft();this.columnController.setVirtualViewportPosition(e,t)}},t.prototype.getBodyViewportScrollLeft=function(){return this.forPrint?0:p.Utils.getScrollLeft(this.eBodyViewport,this.enableRtl)},t.prototype.setBodyViewportScrollLeft=function(e){this.forPrint||p.Utils.setScrollLeft(this.eBodyViewport,e,this.enableRtl)},t.prototype.horizontallyScrollHeaderCenterAndFloatingCenter=function(){var e=this.getBodyViewportScrollLeft(),t=this.enableRtl?e:-e;this.eHeaderContainer.style.left=t+"px",this.eFloatingBottomContainer.style.left=t+"px",this.eFloatingTopContainer.style.left=t+"px"},t.prototype.fakeVerticalScroll=function(e){if(this.enableRtl){this.columnController.isPinningLeft()&&this.setFakeScroll(this.eBodyContainer,e),this.setFakeScroll(this.ePinnedRightColsContainer,e)}else{this.columnController.isPinningRight()&&this.setFakeScroll(this.eBodyContainer,e),this.setFakeScroll(this.ePinnedLeftColsContainer,e)}this.setFakeScroll(this.eFullWidthCellContainer,e)},t.prototype.setFakeScroll=function(e,t){e.style.top=-t+"px"},t.prototype.addScrollEventListener=function(e){this.eBodyViewport.addEventListener("scroll",e)},t.prototype.removeScrollEventListener=function(e){this.eBodyViewport.removeEventListener("scroll",e)},s([g.Autowired("alignedGridsService"),a("design:type",D.AlignedGridsService)],t.prototype,"alignedGridsService",void 0),s([g.Autowired("gridOptionsWrapper"),a("design:type",u.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),s([g.Autowired("columnController"),a("design:type",c.ColumnController)],t.prototype,"columnController",void 0),s([g.Autowired("rowRenderer"),a("design:type",d.RowRenderer)],t.prototype,"rowRenderer",void 0),s([g.Autowired("pinnedRowModel"),a("design:type",T.PinnedRowModel)],t.prototype,"pinnedRowModel",void 0),s([g.Autowired("eventService"),a("design:type",y.EventService)],t.prototype,"eventService",void 0),s([g.Autowired("context"),a("design:type",g.Context)],t.prototype,"context",void 0),s([g.Autowired("animationFrameService"),a("design:type",F.AnimationFrameService)],t.prototype,"animationFrameService",void 0),s([g.Autowired("paginationProxy"),a("design:type",b.PaginationProxy)],t.prototype,"paginationProxy",void 0),s([g.Autowired("columnApi"),a("design:type",c.ColumnApi)],t.prototype,"columnApi",void 0),s([g.Autowired("gridApi"),a("design:type",N.GridApi)],t.prototype,"gridApi",void 0),s([g.Optional("rangeController"),a("design:type",Object)],t.prototype,"rangeController",void 0),s([g.Autowired("dragService"),a("design:type",m.DragService)],t.prototype,"dragService",void 0),s([g.Autowired("selectionController"),a("design:type",E.SelectionController)],t.prototype,"selectionController",void 0),s([g.Optional("clipboardService"),a("design:type",Object)],t.prototype,"clipboardService",void 0),s([g.Autowired("csvCreator"),a("design:type",w.CsvCreator)],t.prototype,"csvCreator",void 0),s([g.Autowired("mouseEventService"),a("design:type",R.MouseEventService)],t.prototype,"mouseEventService",void 0),s([g.Autowired("focusedCellController"),a("design:type",_.FocusedCellController)],t.prototype,"focusedCellController",void 0),s([g.Autowired("$scope"),a("design:type",Object)],t.prototype,"$scope",void 0),s([g.Autowired("scrollVisibleService"),a("design:type",O.ScrollVisibleService)],t.prototype,"scrollVisibleService",void 0),s([g.Optional("contextMenuFactory"),a("design:type",Object)],t.prototype,"contextMenuFactory",void 0),s([g.Autowired("frameworkFactory"),a("design:type",Object)],t.prototype,"frameworkFactory",void 0),s([l(0,g.Qualifier("loggerFactory")),a("design:type",Function),a("design:paramtypes",[f.LoggerFactory]),a("design:returntype",void 0)],t.prototype,"agWire",null),s([g.PreDestroy,a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",void 0)],t.prototype,"destroy",null),s([g.PostConstruct,a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",void 0)],t.prototype,"init",null),t=s([g.Bean("gridPanel")],t)}(A.BeanStub);t.GridPanel=j;var z;!function(e){e[e.HORIZONTAL=0]="HORIZONTAL",e[e.VERTICAL=1]="VERTICAL",e[e.DIAGONAL=2]="DIAGONAL"}(z||(z={}))},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(8),n=function(){function e(t){this.centerHeightLastTime=-1,this.centerWidthLastTime=-1,this.centerLeftMarginLastTime=-1,this.visibleLastTime=!1,this.sizeChangeListeners=[],this.isLayoutPanel=!0,this.fullHeight=!t.north&&!t.south;var o;t.dontFill?(o=e.TEMPLATE_DONT_FILL,this.horizontalLayoutActive=!1,this.verticalLayoutActive=!1):t.fillHorizontalOnly?(o=e.TEMPLATE_DONT_FILL,this.horizontalLayoutActive=!0,this.verticalLayoutActive=!1):(o=this.fullHeight?e.TEMPLATE_FULL_HEIGHT:e.TEMPLATE_NORMAL,this.horizontalLayoutActive=!0,this.verticalLayoutActive=!0),this.eGui=i.Utils.loadTemplate(o),this.id="borderLayout",t.name&&(this.id+="_"+t.name),this.eGui.setAttribute("id",this.id),this.childPanels=[],t&&this.setupPanels(t),this.overlays=t.overlays,this.setupOverlays()}return e.prototype.addSizeChangeListener=function(e){this.sizeChangeListeners.push(e)},e.prototype.fireSizeChanged=function(){this.sizeChangeListeners.forEach(function(e){e()})},e.prototype.getRefElement=function(e){return this.eGui.querySelector('[ref="'+e+'"]')},e.prototype.setupPanels=function(e){this.eNorthWrapper=this.getRefElement("north"),this.eSouthWrapper=this.getRefElement("south"),this.eEastWrapper=this.getRefElement("east"),this.eWestWrapper=this.getRefElement("west"),this.eCenterWrapper=this.getRefElement("center"),this.eOverlayWrapper=this.getRefElement("overlay"),this.eCenterRow=this.getRefElement("centerRow"),this.eNorthChildLayout=this.setupPanel(e.north,this.eNorthWrapper),this.eSouthChildLayout=this.setupPanel(e.south,this.eSouthWrapper),this.eEastChildLayout=this.setupPanel(e.east,this.eEastWrapper),this.eWestChildLayout=this.setupPanel(e.west,this.eWestWrapper),this.eCenterChildLayout=this.setupPanel(e.center,this.eCenterWrapper)},e.prototype.setupPanel=function(e,t){if(t)return e?e.isLayoutPanel?(this.childPanels.push(e),t.appendChild(e.getGui()),e):(t.appendChild(e),null):(t.parentNode.removeChild(t),null)},e.prototype.getGui=function(){return this.eGui},e.prototype.doLayout=function(){var e=this,t=i.Utils.isVisible(this.eGui);if(!t)return this.visibleLastTime=!1,!1;var o=!1;(this.visibleLastTime!==t&&(o=!0),this.visibleLastTime=!0,[this.eNorthChildLayout,this.eSouthChildLayout,this.eEastChildLayout,this.eWestChildLayout].forEach(function(t){e.layoutChild(t)&&(o=!0)}),this.horizontalLayoutActive)&&(this.layoutWidth()&&(o=!0));if(this.verticalLayoutActive){this.layoutHeight()&&(o=!0)}return this.layoutChild(this.eCenterChildLayout)&&(o=!0),o&&this.fireSizeChanged(),o},e.prototype.layoutChild=function(e){return!!e&&e.doLayout()},e.prototype.layoutHeight=function(){return this.fullHeight?this.layoutHeightFullHeight():this.layoutHeightNormal()},e.prototype.layoutHeightFullHeight=function(){var e=i.Utils.offsetHeight(this.eGui);return e<0&&(e=0),this.centerHeightLastTime!==e&&(this.centerHeightLastTime=e,!0)},e.prototype.layoutHeightNormal=function(){var e=i.Utils.offsetHeight(this.eGui),t=i.Utils.offsetHeight(this.eNorthWrapper),o=i.Utils.offsetHeight(this.eSouthWrapper),n=e-t-o;return n<0&&(n=0),this.centerHeightLastTime!==n&&(this.eCenterRow.style.height=n+"px",this.centerHeightLastTime=n,!0)},e.prototype.getCentreHeight=function(){return this.centerHeightLastTime},e.prototype.layoutWidth=function(){var e=i.Utils.offsetWidth(this.eGui),t=i.Utils.offsetWidth(this.eEastWrapper),o=i.Utils.offsetWidth(this.eWestWrapper),n=e-t-o;n<0&&(n=0);var r=!1;return this.centerLeftMarginLastTime!==o&&(this.centerLeftMarginLastTime=o,this.eCenterWrapper.style.marginLeft=o+"px",r=!0),this.centerWidthLastTime!==n&&(this.centerWidthLastTime=n,this.eCenterWrapper.style.width=n+"px",r=!0),r},e.prototype.setEastVisible=function(e){this.eEastWrapper&&(this.eEastWrapper.style.display=e?"":"none"),this.doLayout()},e.prototype.setupOverlays=function(){if(!this.overlays)return void this.eOverlayWrapper.parentNode.removeChild(this.eOverlayWrapper);this.hideOverlay()},e.prototype.hideOverlay=function(){i.Utils.removeAllChildren(this.eOverlayWrapper),this.eOverlayWrapper.style.display="none"},e.prototype.showOverlay=function(e){var t=this.overlays?this.overlays[e]:null;t?(i.Utils.removeAllChildren(this.eOverlayWrapper),this.eOverlayWrapper.style.display="",this.eOverlayWrapper.appendChild(t)):(console.log("ag-Grid: unknown overlay"),this.hideOverlay())},e.TEMPLATE_FULL_HEIGHT='<div class="ag-bl ag-bl-full-height">  <div class="ag-bl-west ag-bl-full-height-west" ref="west"></div>  <div class="ag-bl-east ag-bl-full-height-east" ref="east"></div>  <div class="ag-bl-center ag-bl-full-height-center" ref="center"></div>  <div class="ag-bl-overlay" ref="overlay"></div></div>',e.TEMPLATE_NORMAL='<div class="ag-bl ag-bl-normal">  <div ref="north"></div>  <div class="ag-bl-center-row ag-bl-normal-center-row" ref="centerRow">    <div class="ag-bl-west ag-bl-normal-west" ref="west"></div>    <div class="ag-bl-east ag-bl-normal-east" ref="east"></div>    <div class="ag-bl-center ag-bl-normal-center" ref="center"></div>  </div>  <div ref="south"></div>  <div class="ag-bl-overlay" ref="overlay"></div></div>',e.TEMPLATE_DONT_FILL='<div class="ag-bl ag-bl-dont-fill">  <div ref="north"></div>  <div ref="centerRow" class="ag-bl-center-row ag-bl-dont-fill-center-row">    <div ref="west" class="ag-bl-west ag-bl-dont-fill-west"></div>    <div ref="east" class="ag-bl-east ag-bl-dont-fill-east"></div>    <div ref="center" class="ag-bl-center ag-bl-dont-fill-center"></div>  </div>  <div ref="south"></div>  <div class="ag-bl-overlay" ref="overlay"></div></div>',e}();t.BorderLayout=n},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(7),s=o(6),a=o(8),l=o(5),p=o(11),u=o(4),c=o(15),d=o(12),h=function(){function e(){this.onMouseUpListener=this.onMouseUp.bind(this),this.onMouseMoveListener=this.onMouseMove.bind(this),this.onTouchEndListener=this.onTouchUp.bind(this),this.onTouchMoveListener=this.onTouchMove.bind(this),this.dragEndFunctions=[],this.dragSources=[]}return e.prototype.init=function(){this.logger=this.loggerFactory.create("DragService")},e.prototype.destroy=function(){this.dragSources.forEach(this.removeListener.bind(this)),this.dragSources.length=0},e.prototype.removeListener=function(e){var t=e.dragSource.eElement,o=e.mouseDownListener;if(t.removeEventListener("mousedown",o),e.touchEnabled){var i=e.touchStartListener;t.removeEventListener("touchstart",i,{passive:!0})}},e.prototype.removeDragSource=function(e){var t=a.Utils.find(this.dragSources,function(t){return t.dragSource===e});t&&(this.removeListener(t),a.Utils.removeFromArray(this.dragSources,t))},e.prototype.setNoSelectToBody=function(e){var t=this.gridOptionsWrapper.getDocument(),o=t.querySelector("body");a.Utils.exists(o)&&a.Utils.addOrRemoveCssClass(o,"ag-body-no-select",e)},e.prototype.addDragSource=function(e,t){void 0===t&&(t=!1);var o=this.onMouseDown.bind(this,e);e.eElement.addEventListener("mousedown",o);var i=null,n=this.gridOptionsWrapper.isSuppressTouch();t&&!n&&(i=this.onTouchStart.bind(this,e),e.eElement.addEventListener("touchstart",i,{passive:!1})),this.dragSources.push({dragSource:e,mouseDownListener:o,touchStartListener:i,touchEnabled:t})},e.prototype.onTouchStart=function(e,t){var o=this;this.currentDragParams=e,this.dragging=!1;var i=t.touches[0];this.touchLastTime=i,this.touchStart=i,t.preventDefault(),e.eElement.addEventListener("touchmove",this.onTouchMoveListener,{passive:!0}),e.eElement.addEventListener("touchend",this.onTouchEndListener,{passive:!0}),e.eElement.addEventListener("touchcancel",this.onTouchEndListener,{passive:!0}),this.dragEndFunctions.push(function(){e.eElement.removeEventListener("touchmove",o.onTouchMoveListener,{passive:!0}),e.eElement.removeEventListener("touchend",o.onTouchEndListener,{passive:!0}),e.eElement.removeEventListener("touchcancel",o.onTouchEndListener,{passive:!0})}),0===e.dragStartPixels&&this.onCommonMove(i,this.touchStart)},e.prototype.onMouseDown=function(e,t){var o=this;if(0===t.button){this.currentDragParams=e,this.dragging=!1,this.mouseEventLastTime=t,this.mouseStartEvent=t;var i=this.gridOptionsWrapper.getDocument();i.addEventListener("mousemove",this.onMouseMoveListener),i.addEventListener("mouseup",this.onMouseUpListener),this.dragEndFunctions.push(function(){i.removeEventListener("mousemove",o.onMouseMoveListener),i.removeEventListener("mouseup",o.onMouseUpListener)}),0===e.dragStartPixels&&this.onMouseMove(t)}},e.prototype.isEventNearStartEvent=function(e,t){var o=a.Utils.exists(this.currentDragParams.dragStartPixels)?this.currentDragParams.dragStartPixels:4;return a.Utils.areEventsNear(e,t,o)},e.prototype.getFirstActiveTouch=function(e){for(var t=0;t<e.length;t++){if(e[t].identifier===this.touchStart.identifier)return e[t]}return null},e.prototype.onCommonMove=function(e,t){if(!this.dragging){if(!this.dragging&&this.isEventNearStartEvent(e,t))return;this.dragging=!0;var o={type:p.Events.EVENT_DRAG_STARTED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o),this.currentDragParams.onDragStart(t),this.setNoSelectToBody(!0)}this.currentDragParams.onDragging(e)},e.prototype.onTouchMove=function(e){var t=this.getFirstActiveTouch(e.touches);t&&this.onCommonMove(t,this.touchStart)},e.prototype.onMouseMove=function(e){this.onCommonMove(e,this.mouseStartEvent)},e.prototype.onTouchUp=function(e){var t=this.getFirstActiveTouch(e.targetTouches);t||(t=this.touchLastTime),this.onUpCommon(t)},e.prototype.onMouseUp=function(e){this.onUpCommon(e)},e.prototype.onUpCommon=function(e){if(this.dragging){this.dragging=!1,this.currentDragParams.onDragStop(e);var t={type:p.Events.EVENT_DRAG_STOPPED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}this.setNoSelectToBody(!1),this.mouseStartEvent=null,this.mouseEventLastTime=null,this.touchStart=null,this.touchLastTime=null,this.currentDragParams=null,this.dragEndFunctions.forEach(function(e){return e()}),this.dragEndFunctions.length=0},i([r.Autowired("loggerFactory"),n("design:type",s.LoggerFactory)],e.prototype,"loggerFactory",void 0),i([r.Autowired("eventService"),n("design:type",l.EventService)],e.prototype,"eventService",void 0),i([r.Autowired("gridOptionsWrapper"),n("design:type",u.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.Autowired("columnApi"),n("design:type",c.ColumnApi)],e.prototype,"columnApi",void 0),i([r.Autowired("gridApi"),n("design:type",d.GridApi)],e.prototype,"gridApi",void 0),i([r.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),i([r.PreDestroy,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"destroy",null),e=i([r.Bean("dragService")],e)}();t.DragService=h},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(o,i){t(o,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(8),a=o(7),l=o(7),p=o(6),u=o(5),c=o(11),d=o(7),h=o(4),f=o(7),g=o(9),y=o(15),v=o(12),m=function(){function e(){}return e.prototype.setBeans=function(e){this.logger=e.create("SelectionController"),this.reset(),this.gridOptionsWrapper.isRowModelDefault()?this.eventService.addEventListener(c.Events.EVENT_ROW_DATA_CHANGED,this.reset.bind(this)):this.logger.log("dont know what to do here")},e.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsWrapper.isGroupSelectsChildren(),this.eventService.addEventListener(c.Events.EVENT_ROW_SELECTED,this.onRowSelected.bind(this))},e.prototype.setLastSelectedNode=function(e){this.lastSelectedNode=e},e.prototype.getLastSelectedNode=function(){return this.lastSelectedNode},e.prototype.getSelectedNodes=function(){var e=[];return s.Utils.iterateObject(this.selectedNodes,function(t,o){o&&e.push(o)}),e},e.prototype.getSelectedRows=function(){var e=[];return s.Utils.iterateObject(this.selectedNodes,function(t,o){o&&e.push(o.data)}),e},e.prototype.removeGroupsFromSelection=function(){var e=this;s.Utils.iterateObject(this.selectedNodes,function(t,o){o&&o.group&&(e.selectedNodes[o.id]=void 0)})},e.prototype.updateGroupsFromChildrenSelections=function(){this.rowModel.getType()!==g.Constants.ROW_MODEL_TYPE_IN_MEMORY&&console.warn("updateGroupsFromChildrenSelections not available when rowModel is not normal"),this.rowModel.getTopLevelNodes().forEach(function(e){e.depthFirstSearch(function(e){e.group&&e.calculateSelectedFromChildren()})})},e.prototype.getNodeForIdIfSelected=function(e){return this.selectedNodes[e]},e.prototype.clearOtherNodes=function(e){var t=this,o={},i=0;return s.Utils.iterateObject(this.selectedNodes,function(n,r){if(r&&r.id!==e.id){var s=t.selectedNodes[r.id];i+=s.setSelectedParams({newValue:!1,clearSelection:!1,tailingNodeInSequence:!0}),t.groupSelectsChildren&&r.parent&&(o[r.parent.id]=r.parent)}}),s.Utils.iterateObject(o,function(e,t){t.calculateSelectedFromChildren()}),i},e.prototype.onRowSelected=function(e){var t=e.node;this.groupSelectsChildren&&t.group||(t.isSelected()?this.selectedNodes[t.id]=t:this.selectedNodes[t.id]=void 0)},e.prototype.syncInRowNode=function(e,t){this.syncInOldRowNode(e,t),this.syncInNewRowNode(e)},e.prototype.syncInOldRowNode=function(e,t){s.Utils.exists(t)&&e.id!==t.id&&(s.Utils.exists(this.selectedNodes[t.id])&&(this.selectedNodes[t.id]=t))},e.prototype.syncInNewRowNode=function(e){s.Utils.exists(this.selectedNodes[e.id])?(e.setSelectedInitialValue(!0),this.selectedNodes[e.id]=e):e.setSelectedInitialValue(!1)},e.prototype.reset=function(){this.logger.log("reset"),this.selectedNodes={},this.lastSelectedNode=null},e.prototype.getBestCostNodeSelection=function(){function e(t){for(var o=0,n=t.length;o<n;o++){var r=t[o];r.isSelected()?i.push(r):r.group&&r.children&&e(r.children)}}this.rowModel.getType()!==g.Constants.ROW_MODEL_TYPE_IN_MEMORY&&console.warn("getBestCostNodeSelection is only avilable when using normal row model");var t=this.rowModel,o=t.getTopLevelNodes();if(null===o)return void console.warn("selectAll not available doing rowModel=virtual");var i=[];return e(o),i},e.prototype.setRowModel=function(e){this.rowModel=e},e.prototype.isEmpty=function(){var e=0;return s.Utils.iterateObject(this.selectedNodes,function(t,o){o&&e++}),0===e},e.prototype.deselectAllRowNodes=function(e){void 0===e&&(e=!1);var t=function(e){return e.selectThisNode(!1)},o=this.rowModel.getType()===g.Constants.ROW_MODEL_TYPE_IN_MEMORY;if(e){if(!o)return void console.error("ag-Grid: selecting just filtered only works with In Memory Row Model");this.rowModel.forEachNodeAfterFilter(t)}else s.Utils.iterateObject(this.selectedNodes,function(e,o){o&&t(o)});this.reset(),o&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections();var i={type:c.Events.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(i)},e.prototype.selectAllRowNodes=function(e){if(void 0===e&&(e=!1),this.rowModel.getType()!==g.Constants.ROW_MODEL_TYPE_IN_MEMORY)throw"selectAll only available with normal row model, ie not "+this.rowModel.getType();var t=this.rowModel,o=function(e){return e.selectThisNode(!0)};e?t.forEachNodeAfterFilter(o):t.forEachNode(o),this.rowModel.getType()===g.Constants.ROW_MODEL_TYPE_IN_MEMORY&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections();var i={type:c.Events.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(i)},e.prototype.selectNode=function(e,t){e.setSelectedParams({newValue:!0,clearSelection:!t})},e.prototype.deselectIndex=function(e){var t=this.rowModel.getRow(e);this.deselectNode(t)},e.prototype.deselectNode=function(e){e.setSelectedParams({newValue:!1,clearSelection:!1})},e.prototype.selectIndex=function(e,t){var o=this.rowModel.getRow(e);this.selectNode(o,t)},i([d.Autowired("eventService"),n("design:type",u.EventService)],e.prototype,"eventService",void 0),i([d.Autowired("rowModel"),n("design:type",Object)],e.prototype,"rowModel",void 0),i([d.Autowired("gridOptionsWrapper"),n("design:type",h.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([d.Autowired("columnApi"),n("design:type",y.ColumnApi)],e.prototype,"columnApi",void 0),i([d.Autowired("gridApi"),n("design:type",v.GridApi)],e.prototype,"gridApi",void 0),i([r(0,l.Qualifier("loggerFactory")),n("design:type",Function),n("design:paramtypes",[p.LoggerFactory]),n("design:returntype",void 0)],e.prototype,"setBeans",null),i([f.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),e=i([a.Bean("selectionController")],e)}();t.SelectionController=m},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(7),s=o(7),a=o(8),l=o(4),p=o(29),u=function(){function e(){this.gridInstanceId=t.gridInstanceSequence.next()}return t=e,e.prototype.init=function(){this.stampDomElementWithGridInstance()},e.prototype.stampDomElementWithGridInstance=function(){this.eGridDiv[t.GRID_DOM_KEY]=this.gridInstanceId},e.prototype.getRenderedCellForEvent=function(e){for(var t=a.Utils.getTarget(e);t;){var o=this.gridOptionsWrapper.getDomData(t,p.CellComp.DOM_DATA_KEY_CELL_COMP);if(o)return o;t=t.parentElement}return null},e.prototype.isEventFromThisGrid=function(e){for(var o=a.Utils.getTarget(e),i=!1,n=a.Utils.missing(o);!n;){var r=o[t.GRID_DOM_KEY];a.Utils.exists(r)&&(i=r===this.gridInstanceId,n=!0),o=o.parentElement}return i},e.prototype.getGridCellForEvent=function(e){var t=this.getRenderedCellForEvent(e);return t?t.getGridCell():null},e.gridInstanceSequence=new a.NumberSequence,e.GRID_DOM_KEY="__ag_grid_instance",i([s.Autowired("gridOptionsWrapper"),n("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([s.Autowired("eGridDiv"),n("design:type",HTMLElement)],e.prototype,"eGridDiv",void 0),i([r.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),e=t=i([r.Bean("mouseEventService")],e);var t}();t.MouseEventService=u},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var n=o(8),r=o(17),s=o(30),a=o(9),l=o(11),p=o(33),u=o(35),c=o(37),d=function(e){function t(t,o,i,n,r){var s=e.call(this)||this;return s.scope=t,s.beans=o,s.column=i,s.rowNode=n,s.rowComp=r,s.createGridCellVo(),s.rangeSelectionEnabled=o.enterprise&&o.gridOptionsWrapper.isEnableRangeSelection(),s.cellFocused=s.beans.focusedCellController.isCellFocused(s.gridCell),s.firstRightPinned=s.column.isFirstRightPinned(),s.lastLeftPinned=s.column.isLastLeftPinned(),s.rangeSelectionEnabled&&(s.rangeCount=s.beans.rangeController.getCellRangeCount(s.gridCell)),s.value=s.getValue(),s.setUsingWrapper(),s.chooseCellRenderer(),s.setupColSpan(),s}return i(t,e),t.prototype.getCreateTemplate=function(){var e,t,o=[],i=this.column,n=this.getCellWidth(),r=i.getLeft(),s=this.getInitialValueToRender(),a=this.getToolTip(),l=this.preProcessStylesFromColDef(),p=this.getInitialCssClasses();return this.usingWrapper&&(e='<span ref="eCellWrapper" class="ag-cell-wrapper"><span ref="eCellValue" class="ag-cell-value">',t="</span></span>"),o.push("<div"),o.push(' tabindex="-1"'),o.push(' role="gridcell"'),o.push(' comp-id="'+this.getCompId()+'" '),o.push(' col-id="'+i.getId()+'"'),o.push(' class="'+p.join(" ")+'"'),o.push(a?' title="'+a+'"':""),o.push(' style="width: '+n+"px; left: "+r+"px; "+l+'" >'),o.push(e),o.push(s),o.push(t),o.push("</div>"),o.join("")},t.prototype.afterAttached=function(){var e='[comp-id="'+this.getCompId()+'"]',t=this.eParentRow.querySelector(e);this.setHtmlElementNoHydrate(t),this.addDomData(),this.addSelectionCheckbox(),this.attachCellRenderer(),this.angular1Compile(),this.addDestroyableEventListener(this.beans.eventService,l.Events.EVENT_CELL_FOCUSED,this.onCellFocused.bind(this)),this.addDestroyableEventListener(this.beans.eventService,l.Events.EVENT_FLASH_CELLS,this.onFlashCells.bind(this)),this.addDestroyableEventListener(this.beans.eventService,l.Events.EVENT_COLUMN_HOVER_CHANGED,this.onColumnHover.bind(this)),this.addDestroyableEventListener(this.rowNode,s.RowNode.EVENT_ROW_INDEX_CHANGED,this.onRowIndexChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,s.RowNode.EVENT_CELL_CHANGED,this.onCellChanged.bind(this)),this.addDestroyableEventListener(this.column,r.Column.EVENT_LEFT_CHANGED,this.onLeftChanged.bind(this)),this.addDestroyableEventListener(this.column,r.Column.EVENT_WIDTH_CHANGED,this.onWidthChanged.bind(this)),this.addDestroyableEventListener(this.column,r.Column.EVENT_FIRST_RIGHT_PINNED_CHANGED,this.onFirstRightPinnedChanged.bind(this)),this.addDestroyableEventListener(this.column,r.Column.EVENT_LAST_LEFT_PINNED_CHANGED,this.onLastLeftPinnedChanged.bind(this)),this.rangeSelectionEnabled&&this.addDestroyableEventListener(this.beans.eventService,l.Events.EVENT_RANGE_SELECTION_CHANGED,this.onRangeSelectionChanged.bind(this))},t.prototype.onColumnHover=function(){var e=this.beans.columnHoverService.isHovered(this.column);n._.addOrRemoveCssClass(this.getHtmlElement(),"ag-column-hover",e)},t.prototype.onCellChanged=function(e){e.column===this.column&&this.refreshCell({})},t.prototype.getCellLeft=function(){var e;return e=this.beans.gridOptionsWrapper.isEnableRtl()&&this.colsSpanning?this.colsSpanning[this.colsSpanning.length-1]:this.column,e.getLeft()},t.prototype.getCellWidth=function(){if(this.colsSpanning){var e=0;return this.colsSpanning.forEach(function(t){return e+=t.getActualWidth()}),e}return this.column.getActualWidth()},t.prototype.onFlashCells=function(e){var t=this.gridCell.createId();e.cells[t]&&this.animateCell("highlight")},t.prototype.setupColSpan=function(){n._.missing(this.column.getColDef().colSpan)||(this.addDestroyableEventListener(this.beans.eventService,l.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayColumnsChanged.bind(this)),this.addDestroyableEventListener(this.beans.eventService,l.Events.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onWidthChanged.bind(this)),this.colsSpanning=this.getColSpanningList())},t.prototype.getColSpanningList=function(){var e=this.column.getColSpan(this.rowNode),t=[];if(1===e)t.push(this.column);else for(var o=this.column,i=this.column.getPinned(),r=0;r<e&&(t.push(o),o=this.beans.columnController.getDisplayedColAfter(o),!n._.missing(o))&&i===o.getPinned();r++);return t},t.prototype.onDisplayColumnsChanged=function(){var e=this.getColSpanningList();n._.compareArrays(this.colsSpanning,e)||(this.colsSpanning=e,this.onWidthChanged(),this.onLeftChanged())},t.prototype.getInitialCssClasses=function(){var e=["ag-cell","ag-cell-not-inline-editing"];return e.push(this.cellFocused?"ag-cell-focus":"ag-cell-no-focus"),this.firstRightPinned&&e.push("ag-cell-first-right-pinned"),this.lastLeftPinned&&e.push("ag-cell-last-left-pinned"),this.beans.columnHoverService.isHovered(this.column)&&e.push("ag-column-hover"),n._.pushAll(e,this.preProcessClassesFromColDef()),n._.pushAll(e,this.preProcessCellClassRules()),n._.pushAll(e,this.getRangeClasses()),this.usingWrapper||e.push("ag-cell-value"),e},t.prototype.getInitialValueToRender=function(){if(this.usingCellRenderer)return"string"==typeof this.cellRendererGui?this.cellRendererGui:"";var e=this.column.getColDef();if(e.template)return e.template;if(e.templateUrl){var t=this.beans.templateService.getTemplate(e.templateUrl,this.refreshCell.bind(this,!0));return t||""}var o=this.beans.valueFormatterService.formatValue(this.column,this.rowNode,null,this.value);return null!==o&&void 0!==o?o:this.value},t.prototype.getRenderedRow=function(){return this.rowComp},t.prototype.isSuppressNavigable=function(){return this.column.isSuppressNavigable(this.rowNode)},t.prototype.refreshCell=function(e){if(!this.editingCell){var t=e&&e.newData,o=e&&e.suppressFlash,i=e&&e.volatile,n=e&&e.forceRefresh;if(!i||this.isVolatile()){var r=this.value;this.value=this.getValue();if(!(!n&&this.valuesAreEqual(r,this.value))){var s;s=!t&&!o&&this.attemptCellRendererRefresh(),s||this.replaceContentsAfterRefresh(),o||this.flashCell(),this.postProcessStylesFromColDef(),this.postProcessClassesFromColDef(),this.postProcessCellClassRules()}}}},t.prototype.flashCell=function(){(this.beans.gridOptionsWrapper.isEnableCellChangeFlash()||this.column.getColDef().enableCellChangeFlash)&&this.animateCell("data-changed")},t.prototype.animateCell=function(e){var t="ag-cell-"+e,o="ag-cell-"+e+"-animation",i=this.getHtmlElement();n._.addCssClass(i,t),n._.removeCssClass(i,o),setTimeout(function(){n._.removeCssClass(i,t),n._.addCssClass(i,o),setTimeout(function(){n._.removeCssClass(i,o)},1e3)},500)},t.prototype.replaceContentsAfterRefresh=function(){n._.removeAllChildren(this.eParentOfValue),this.cellRenderer&&this.cellRenderer.destroy&&this.cellRenderer.destroy(),this.cellRenderer=null,this.cellRendererGui=null,this.putDataIntoCellAfterRefresh(),this.angular1Compile()},t.prototype.angular1Compile=function(){if(this.beans.gridOptionsWrapper.isAngularCompileRows()){var e=this.getGui();this.beans.$compile(e)(this.scope)}},t.prototype.postProcessStylesFromColDef=function(){var e=this.processStylesFromColDef();e&&n._.addStylesToElement(this.getGui(),e)},t.prototype.preProcessStylesFromColDef=function(){var e=this.processStylesFromColDef();return n._.cssStyleObjectToMarkup(e)},t.prototype.processStylesFromColDef=function(){var e=this.column.getColDef();if(e.cellStyle){var t=void 0;if("function"==typeof e.cellStyle){var o={value:this.value,data:this.rowNode.data,node:this.rowNode,colDef:e,column:this.column,$scope:this.scope,context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi()};t=(0,e.cellStyle)(o)}else t=e.cellStyle;return t}},t.prototype.postProcessClassesFromColDef=function(){var e=this;this.processClassesFromColDef(function(t){return n._.addCssClass(e.getHtmlElement(),t)})},t.prototype.preProcessClassesFromColDef=function(){var e=[];return this.processClassesFromColDef(function(t){return e.push(t)}),e},t.prototype.processClassesFromColDef=function(e){this.beans.stylingService.processStaticCellClasses(this.column.getColDef(),{value:this.value,data:this.rowNode.data,node:this.rowNode,colDef:this.column.getColDef(),rowIndex:this.rowNode.rowIndex,$scope:this.scope,api:this.beans.gridOptionsWrapper.getApi(),context:this.beans.gridOptionsWrapper.getContext()},e)},t.prototype.putDataIntoCellAfterRefresh=function(){var e=this.column.getColDef();if(e.template)this.eParentOfValue.innerHTML=e.template;else if(e.templateUrl){var t=this.beans.templateService.getTemplate(e.templateUrl,this.refreshCell.bind(this,!0));t&&(this.eParentOfValue.innerHTML=t)}else if(this.usingCellRenderer)this.attachCellRenderer();else{var o=this.beans.valueFormatterService.formatValue(this.column,this.rowNode,this.scope,this.value),i=null!==o&&void 0!==o,r=i?o:this.value;null!==r&&void 0!==r&&(this.eParentOfValue.innerText=r)}if(e.tooltipField){var s=this.rowNode.data;if(n._.exists(s)){var a=n._.getValueUsingField(s,e.tooltipField,this.column.isTooltipFieldContainsDots());n._.exists(a)&&this.eParentOfValue.setAttribute("title",a)}}},t.prototype.attemptCellRendererRefresh=function(){if(n._.missing(this.cellRenderer)||n._.missing(this.cellRenderer.refresh))return!1;var e=this.formatValue(this.value),t=this.createCellRendererParams(e),o=this.cellRenderer.refresh(t);return!0===o||void 0===o},t.prototype.isVolatile=function(){return this.column.getColDef().volatile},t.prototype.valuesAreEqual=function(e,t){var o=this.column.getColDef(),i=o?o.equals:null;return i?i(e,t):e===t},t.prototype.getToolTip=function(){var e=this.column.getColDef(),t=this.rowNode.data;return e.tooltipField&&n._.exists(t)?n._.getValueUsingField(t,e.tooltipField,this.column.isTooltipFieldContainsDots()):null},t.prototype.processCellClassRules=function(e,t){this.beans.stylingService.processCellClassRules(this.column.getColDef(),{value:this.value,data:this.rowNode.data,node:this.rowNode,colDef:this.column.getColDef(),rowIndex:this.gridCell.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),context:this.beans.gridOptionsWrapper.getContext()},e,t)},t.prototype.postProcessCellClassRules=function(){var e=this;this.processCellClassRules(function(t){n._.addCssClass(e.getHtmlElement(),t)},function(t){n._.removeCssClass(e.getHtmlElement(),t)})},t.prototype.preProcessCellClassRules=function(){var e=[];return this.processCellClassRules(function(t){e.push(t)},function(e){}),e},t.prototype.setUsingWrapper=function(){var e=this.column.getColDef();this.rowNode.rowPinned?this.usingWrapper=!1:"boolean"==typeof e.checkboxSelection?this.usingWrapper=e.checkboxSelection:"function"==typeof e.checkboxSelection?this.usingWrapper=!0:this.usingWrapper=!1},t.prototype.chooseCellRenderer=function(){var e=this.column.getColDef();if(e.template||e.templateUrl)return void(this.usingCellRenderer=!1);var t=this.beans.componentResolver.getComponentToUse(e,"cellRenderer");this.beans.componentResolver.getComponentToUse(e,"pinnedRowCellRenderer")&&this.rowNode.rowPinned?(this.cellRendererType="pinnedRowCellRenderer",this.usingCellRenderer=!0):t?(this.cellRendererType="cellRenderer",this.usingCellRenderer=!0):this.usingCellRenderer=!1},t.prototype.createCellRendererInstance=function(){var e=this.formatValue(this.value),t=this.createCellRendererParams(e);this.cellRenderer=this.beans.componentResolver.createAgGridComponent(this.column.getColDef(),t,this.cellRendererType),this.cellRendererGui=this.cellRenderer.getGui(),null!==this.cellRendererGui&&void 0!==this.cellRendererGui||console.warn("ag-Grid: cellRenderer should return back a string or a DOM object, but got "+this.cellRendererGui)},t.prototype.attachCellRenderer=function(){this.usingCellRenderer&&(this.createCellRendererInstance(),"object"!=typeof this.cellRendererGui?(this.eParentOfValue.innerHTML=this.cellRendererGui+"",this.cellRendererGui=this.eParentOfValue.firstChild):this.cellRendererGui instanceof Node?this.eParentOfValue.appendChild(this.cellRendererGui):this.cellRendererGui.toString&&(this.eParentOfValue.innerHTML=this.cellRendererGui.toString()+"",this.cellRendererGui=this.eParentOfValue.firstChild))},t.prototype.createCellRendererParams=function(e){var t=this;return{value:this.value,valueFormatted:e,getValue:this.getValue.bind(this),setValue:function(e){t.beans.valueService.setValue(t.rowNode,t.column,e)},formatValue:this.formatValue.bind(this),data:this.rowNode.data,node:this.rowNode,colDef:this.column.getColDef(),column:this.column,$scope:this.scope,rowIndex:this.gridCell.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),refreshCell:this.refreshCell.bind(this),eGridCell:this.getGui(),eParentOfValue:this.eParentOfValue,addRowCompListener:this.rowComp.addEventListener.bind(this.rowComp),addRenderedRowListener:function(e,o){console.warn("ag-Grid: since ag-Grid .v11, params.addRenderedRowListener() is now params.addRowCompListener()"),t.rowComp.addEventListener(e,o)}}},t.prototype.formatValue=function(e){var t=this.beans.valueFormatterService.formatValue(this.column,this.rowNode,this.scope,e);return null!==t&&void 0!==t?t:e},t.prototype.getValue=function(){var e=this.rowNode.leafGroup&&this.beans.columnController.isPivotMode();return this.rowNode.group&&this.rowNode.expanded&&!this.rowNode.footer&&!e&&this.beans.gridOptionsWrapper.isGroupIncludeFooter()?this.beans.valueService.getValue(this.column,this.rowNode,!0):this.beans.valueService.getValue(this.column,this.rowNode)},t.prototype.onMouseEvent=function(e,t){switch(e){case"click":this.onCellClicked(t);break;case"mousedown":this.onMouseDown();break;case"dblclick":this.onCellDoubleClicked(t);break;case"contextmenu":this.onContextMenu(t);break;case"mouseout":this.onMouseOut(t);break;case"mouseover":this.onMouseOver(t)}},t.prototype.createEvent=function(e,t){var o={node:this.rowNode,data:this.rowNode.data,value:this.value,column:this.column,colDef:this.column.getColDef(),context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridApi,columnApi:this.beans.columnApi,rowPinned:this.rowNode.rowPinned,event:e,type:t,rowIndex:this.rowNode.rowIndex};return this.scope&&(o.$scope=this.scope),o},t.prototype.onMouseOut=function(e){var t=this.createEvent(e,l.Events.EVENT_CELL_MOUSE_OUT);this.beans.eventService.dispatchEvent(t)},t.prototype.onMouseOver=function(e){var t=this.createEvent(e,l.Events.EVENT_CELL_MOUSE_OVER);this.beans.eventService.dispatchEvent(t)},t.prototype.onContextMenu=function(e){if(this.beans.gridOptionsWrapper.isAllowContextMenuWithControlKey()||!e.ctrlKey&&!e.metaKey){var t=this.column.getColDef(),o=this.createEvent(e,l.Events.EVENT_CELL_CONTEXT_MENU);this.beans.eventService.dispatchEvent(o),t.onCellContextMenu&&t.onCellContextMenu(o),this.beans.contextMenuFactory&&!this.beans.gridOptionsWrapper.isSuppressContextMenu()&&(this.beans.contextMenuFactory.showMenu(this.rowNode,this.column,this.value,e),e.preventDefault())}},t.prototype.onCellDoubleClicked=function(e){var t=this.column.getColDef(),o=this.createEvent(e,l.Events.EVENT_CELL_DOUBLE_CLICKED);this.beans.eventService.dispatchEvent(o),"function"==typeof t.onCellDoubleClicked&&t.onCellDoubleClicked(o),!this.beans.gridOptionsWrapper.isSingleClickEdit()&&!this.beans.gridOptionsWrapper.isSuppressClickEdit()&&this.startRowOrCellEdit()},t.prototype.startRowOrCellEdit=function(e,t){this.beans.gridOptionsWrapper.isFullRowEdit()?this.rowComp.startRowEditing(e,t,this):this.startEditingIfEnabled(e,t,!0)},t.prototype.isCellEditable=function(){return this.column.isCellEditable(this.rowNode)},t.prototype.startEditingIfEnabled=function(e,t,o){if(void 0===e&&(e=null),void 0===t&&(t=null),void 0===o&&(o=!1),this.isCellEditable()&&!this.editingCell){var i=this.createCellEditor(e,t,o);if(i.isCancelBeforeStart&&i.isCancelBeforeStart())return i.destroy&&i.destroy(),!1;if(!i.getGui)return console.warn("ag-Grid: cellEditor for column "+this.column.getId()+" is missing getGui() method"),i.render&&console.warn("ag-Grid: we found 'render' on the component, are you trying to set a React renderer but added it as colDef.cellEditor instead of colDef.cellEditorFmk?"),!1;this.cellEditor=i,this.editingCell=!0,this.cellEditorInPopup=this.cellEditor.isPopup&&this.cellEditor.isPopup(),this.setInlineEditingClass(),this.cellEditorInPopup?this.addPopupCellEditor():this.addInCellEditor(),i.afterGuiAttached&&i.afterGuiAttached();var n=this.createEvent(null,l.Events.EVENT_CELL_EDITING_STARTED);return this.beans.eventService.dispatchEvent(n),!0}},t.prototype.addInCellEditor=function(){n._.removeAllChildren(this.getHtmlElement()),this.getHtmlElement().appendChild(n._.assertHtmlElement(this.cellEditor.getGui())),this.angular1Compile()},t.prototype.addPopupCellEditor=function(){var e=this,t=this.cellEditor.getGui();this.hideEditorPopup=this.beans.popupService.addAsModalPopup(t,!0,function(){e.onPopupEditorClosed()}),this.beans.popupService.positionPopupOverComponent({column:this.column,rowNode:this.rowNode,type:"popupCellEditor",eventSource:this.getHtmlElement(),ePopup:n._.assertHtmlElement(t),keepWithinBounds:!0}),this.angular1Compile()},t.prototype.onPopupEditorClosed=function(){this.editingCell&&(this.stopRowOrCellEdit(),this.beans.focusedCellController.isCellFocused(this.gridCell)&&this.focusCell(!0))},t.prototype.setInlineEditingClass=function(){var e=this.editingCell&&!this.cellEditorInPopup;n._.addOrRemoveCssClass(this.getHtmlElement(),"ag-cell-inline-editing",e),n._.addOrRemoveCssClass(this.getHtmlElement(),"ag-cell-not-inline-editing",!e)},t.prototype.createCellEditor=function(e,t,o){var i=this.createCellEditorParams(e,t,o);return this.beans.cellEditorFactory.createCellEditor(this.column.getCellEditor(),i)},t.prototype.createCellEditorParams=function(e,t,o){var i={value:this.getValue(),keyPress:e,charPress:t,column:this.column,rowIndex:this.gridCell.rowIndex,node:this.rowNode,api:this.beans.gridOptionsWrapper.getApi(),cellStartedEdit:o,columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),$scope:this.scope,onKeyDown:this.onKeyDown.bind(this),stopEditing:this.stopEditingAndFocus.bind(this),eGridCell:this.getHtmlElement(),parseValue:this.parseValue.bind(this),formatValue:this.formatValue.bind(this)},r=this.column.getColDef();return r.cellEditorParams&&n._.assign(i,r.cellEditorParams),i},t.prototype.stopEditingAndFocus=function(){this.stopRowOrCellEdit(),this.focusCell(!0)},t.prototype.parseValue=function(e){var t={node:this.rowNode,data:this.rowNode.data,oldValue:this.value,newValue:e,colDef:this.column.getColDef(),column:this.column,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()},o=this.column.getColDef().valueParser;return n._.exists(o)?this.beans.expressionService.evaluate(o,t):e},t.prototype.focusCell=function(e){void 0===e&&(e=!1),this.beans.focusedCellController.setFocusedCell(this.gridCell.rowIndex,this.column,this.rowNode.rowPinned,e)},t.prototype.setFocusInOnEditor=function(){this.editingCell&&this.cellEditor&&this.cellEditor.focusIn&&this.cellEditor.focusIn()},t.prototype.isEditing=function(){return this.editingCell},t.prototype.onKeyDown=function(e){var t=e.which||e.keyCode;if(!this.doesUserWantToCancelKeyboardEvent(e))switch(t){case a.Constants.KEY_ENTER:this.onEnterKeyDown();break;case a.Constants.KEY_F2:this.onF2KeyDown();break;case a.Constants.KEY_ESCAPE:this.onEscapeKeyDown();break;case a.Constants.KEY_TAB:this.onTabKeyDown(e);break;case a.Constants.KEY_BACKSPACE:case a.Constants.KEY_DELETE:this.onBackspaceOrDeleteKeyPressed(t);break;case a.Constants.KEY_DOWN:case a.Constants.KEY_UP:case a.Constants.KEY_RIGHT:case a.Constants.KEY_LEFT:this.onNavigationKeyPressed(e,t)}},t.prototype.doesUserWantToCancelKeyboardEvent=function(e){var t=this.column.getColDef().suppressKeyboardEvent;return!n._.missing(t)&&t({event:e,editing:!0===this.editingCell,column:this.column,api:this.beans.gridOptionsWrapper.getApi(),node:this.rowNode,colDef:this.column.getColDef(),context:this.beans.gridOptionsWrapper.getContext(),columnApi:this.beans.gridOptionsWrapper.getColumnApi()})},t.prototype.setFocusOutOnEditor=function(){this.editingCell&&this.cellEditor&&this.cellEditor.focusOut&&this.cellEditor.focusOut()},t.prototype.onNavigationKeyPressed=function(e,t){this.editingCell&&this.stopRowOrCellEdit(),this.beans.rowRenderer.navigateToNextCell(e,t,this.gridCell.rowIndex,this.column,this.rowNode.rowPinned),e.preventDefault()},t.prototype.onTabKeyDown=function(e){this.beans.gridOptionsWrapper.isSuppressTabbing()||this.beans.rowRenderer.onTabKeyDown(this,e)},t.prototype.onBackspaceOrDeleteKeyPressed=function(e){this.editingCell||this.startRowOrCellEdit(e)},t.prototype.onEnterKeyDown=function(){this.editingCell?(this.stopRowOrCellEdit(),this.focusCell(!0)):this.startRowOrCellEdit(a.Constants.KEY_ENTER)},t.prototype.onF2KeyDown=function(){this.editingCell||this.startRowOrCellEdit(a.Constants.KEY_F2)},t.prototype.onEscapeKeyDown=function(){this.editingCell&&(this.stopRowOrCellEdit(!0),this.focusCell(!0))},t.prototype.onKeyPress=function(e){if(n._.getTarget(e)===this.getGui()&&!this.editingCell){var t=String.fromCharCode(e.charCode);" "===t?this.onSpaceKeyPressed(e):n._.isEventFromPrintableCharacter(e)&&(this.startRowOrCellEdit(null,t),e.preventDefault())}},t.prototype.onSpaceKeyPressed=function(e){if(!this.editingCell&&this.beans.gridOptionsWrapper.isRowSelection()){var t=this.rowNode.isSelected();this.rowNode.setSelected(!t)}e.preventDefault()},t.prototype.onMouseDown=function(){if(this.focusCell(!1),this.beans.rangeController){var e=this.gridCell;this.beans.rangeController.isCellInAnyRange(e)||this.beans.rangeController.setRangeToCell(e)}},t.prototype.onCellClicked=function(e){var t=this.createEvent(e,l.Events.EVENT_CELL_CLICKED);this.beans.eventService.dispatchEvent(t);var o=this.column.getColDef();o.onCellClicked&&o.onCellClicked(t),this.beans.gridOptionsWrapper.isSingleClickEdit()&&!this.beans.gridOptionsWrapper.isSuppressClickEdit()&&this.startRowOrCellEdit(),this.doIeFocusHack()},t.prototype.doIeFocusHack=function(){(n._.isBrowserIE()||n._.isBrowserEdge())&&(n._.missing(document.activeElement)||document.activeElement===document.body)&&this.getHtmlElement().focus()},t.prototype.createGridCellVo=function(){var e={rowIndex:this.rowNode.rowIndex,floating:this.rowNode.rowPinned,column:this.column};this.gridCell=new p.GridCell(e)},t.prototype.getGridCell=function(){return this.gridCell},t.prototype.getParentRow=function(){return this.eParentRow},t.prototype.setParentRow=function(e){this.eParentRow=e},t.prototype.getColumn=function(){return this.column},t.prototype.detach=function(){this.eParentRow.removeChild(this.getHtmlElement())},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.cellEditor&&this.cellEditor.destroy&&this.cellEditor.destroy(),this.cellRenderer&&this.cellRenderer.destroy&&this.cellRenderer.destroy()},t.prototype.onLeftChanged=function(){var e=this.getCellLeft();this.getHtmlElement().style.left=e+"px"},t.prototype.onWidthChanged=function(){var e=this.getCellWidth();this.getHtmlElement().style.width=e+"px"},t.prototype.getRangeClasses=function(){var e=[];return this.rangeSelectionEnabled?(0!==this.rangeCount&&e.push("ag-cell-range-selected"),1===this.rangeCount&&e.push("ag-cell-range-selected-1"),2===this.rangeCount&&e.push("ag-cell-range-selected-2"),3===this.rangeCount&&e.push("ag-cell-range-selected-3"),this.rangeCount>=4&&e.push("ag-cell-range-selected-4"),e):e},t.prototype.onRowIndexChanged=function(){this.createGridCellVo(),this.onCellFocused(),this.onRangeSelectionChanged()},t.prototype.onRangeSelectionChanged=function(){if(this.beans.enterprise){var e=this.beans.rangeController.getCellRangeCount(this.gridCell),t=this.getHtmlElement();this.rangeCount!==e&&(n._.addOrRemoveCssClass(t,"ag-cell-range-selected",0!==e),n._.addOrRemoveCssClass(t,"ag-cell-range-selected-1",1===e),n._.addOrRemoveCssClass(t,"ag-cell-range-selected-2",2===e),n._.addOrRemoveCssClass(t,"ag-cell-range-selected-3",3===e),n._.addOrRemoveCssClass(t,"ag-cell-range-selected-4",e>=4),this.rangeCount=e)}},t.prototype.onFirstRightPinnedChanged=function(){var e=this.column.isFirstRightPinned();this.firstRightPinned!==e&&(this.firstRightPinned=e,n._.addOrRemoveCssClass(this.getHtmlElement(),"ag-cell-first-right-pinned",e))},t.prototype.onLastLeftPinnedChanged=function(){var e=this.column.isLastLeftPinned();this.lastLeftPinned!==e&&(this.lastLeftPinned=e,n._.addOrRemoveCssClass(this.getHtmlElement(),"ag-cell-last-left-pinned",e))},t.prototype.addSelectionCheckbox=function(){if(this.usingWrapper){this.eParentOfValue=this.getRefElement("eCellValue"),this.eCellWrapper=this.getRefElement("eCellWrapper");var e=new c.CheckboxSelectionComponent;this.beans.context.wireBean(e);var t=this.column.getColDef().checkboxSelection;t="function"==typeof t?t:null,e.init({rowNode:this.rowNode,column:this.column,visibleFunc:t}),this.addDestroyFunc(function(){return e.destroy()}),this.eCellWrapper.insertBefore(e.getHtmlElement(),this.eParentOfValue)}else this.eParentOfValue=this.getHtmlElement()},t.prototype.addDomData=function(){var e=this,o=this.getHtmlElement();this.beans.gridOptionsWrapper.setDomData(o,t.DOM_DATA_KEY_CELL_COMP,this),this.addDestroyFunc(function(){return e.beans.gridOptionsWrapper.setDomData(o,t.DOM_DATA_KEY_CELL_COMP,null)})},t.prototype.onCellFocused=function(e){var t=this.beans.focusedCellController.isCellFocused(this.gridCell);t!==this.cellFocused&&(n._.addOrRemoveCssClass(this.getHtmlElement(),"ag-cell-focus",t),n._.addOrRemoveCssClass(this.getHtmlElement(),"ag-cell-no-focus",!t),this.cellFocused=t),t&&e&&e.forceBrowserFocus&&this.getHtmlElement().focus();var o=this.beans.gridOptionsWrapper.isFullRowEdit();t||o||!this.editingCell||this.stopRowOrCellEdit()},t.prototype.stopRowOrCellEdit=function(e){void 0===e&&(e=!1),this.beans.gridOptionsWrapper.isFullRowEdit()?this.rowComp.stopRowEditing(e):this.stopEditing(e)},t.prototype.stopEditing=function(e){if(void 0===e&&(e=!1),this.editingCell){if(!e){if(!(this.cellEditor.isCancelAfterEnd&&this.cellEditor.isCancelAfterEnd())){var t=this.cellEditor.getValue();this.beans.valueService.setValue(this.rowNode,this.column,t),this.value=this.getValue()}}if(this.editingCell=!1,this.cellEditor.destroy&&this.cellEditor.destroy(),this.cellEditorInPopup)this.hideEditorPopup(),this.hideEditorPopup=null;else if(n._.removeAllChildren(this.getHtmlElement()),this.usingWrapper)this.getHtmlElement().appendChild(this.eCellWrapper);else if(this.cellRenderer){var o=this.cellRendererGui;this.getHtmlElement().appendChild(o)}this.setInlineEditingClass(),this.refreshCell({forceRefresh:!0,suppressFlash:!0});var i=this.createEvent(null,l.Events.EVENT_CELL_EDITING_STOPPED);this.beans.eventService.dispatchEvent(i)}},t.DOM_DATA_KEY_CELL_COMP="cellComp",t}(u.Component);t.CellComp=d},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(5),s=o(11),a=o(4),l=o(27),p=o(31),u=o(15),c=o(7),d=o(9),h=o(8),f=o(32),g=o(12),y=function(){function e(){this.childrenMapped={},this.selected=!1}return e.prototype.setData=function(e){var t=this.data;this.data=e,this.valueCache.onDataChanged();var o=this.createDataChangedEvent(e,t,!1);this.dispatchLocalEvent(o)},e.prototype.createDataChangedEvent=function(t,o,i){return{type:e.EVENT_DATA_CHANGED,node:this,oldData:o,newData:t,update:i}},e.prototype.createLocalRowEvent=function(e){return{type:e,node:this}},e.prototype.updateData=function(e){var t=this.data;this.data=e;var o=this.createDataChangedEvent(e,t,!0);this.dispatchLocalEvent(o)},e.prototype.getRowIndexString=function(){return this.rowPinned===d.Constants.PINNED_TOP?"t-"+this.rowIndex:this.rowPinned===d.Constants.PINNED_BOTTOM?"b-"+this.rowIndex:this.rowIndex.toString()},e.prototype.createDaemonNode=function(){var t=new e;return this.context.wireBean(t),t.id=this.id,t.data=this.data,t.daemon=!0,t.selected=this.selected,t.level=this.level,t},e.prototype.setDataAndId=function(e,t){var o=h.Utils.exists(this.id)?this.createDaemonNode():null,i=this.data;this.data=e,this.setId(t),this.selectionController.syncInRowNode(this,o);var n=this.createDataChangedEvent(e,i,!1);this.dispatchLocalEvent(n)},e.prototype.setId=function(e){var t=this.gridOptionsWrapper.getRowNodeIdFunc();t?this.data?this.id=t(this.data):this.id=void 0:this.id=e},e.prototype.isPixelInRange=function(e){return e>=this.rowTop&&e<this.rowTop+this.rowHeight},e.prototype.clearRowTop=function(){this.oldRowTop=this.rowTop,this.setRowTop(null)},e.prototype.setFirstChild=function(t){this.firstChild!==t&&(this.firstChild=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_FIRST_CHILD_CHANGED)))},e.prototype.setLastChild=function(t){this.lastChild!==t&&(this.lastChild=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_LAST_CHILD_CHANGED)))},e.prototype.setChildIndex=function(t){this.childIndex!==t&&(this.childIndex=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_CHILD_INDEX_CHANGED)))},e.prototype.setRowTop=function(t){this.rowTop!==t&&(this.rowTop=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_TOP_CHANGED)))},e.prototype.setAllChildrenCount=function(t){this.allChildrenCount!==t&&(this.allChildrenCount=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_ALL_CHILDREN_COUNT_CELL_CHANGED)))},e.prototype.setRowHeight=function(t){this.rowHeight=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_HEIGHT_CHANGED))},e.prototype.setRowIndex=function(t){this.rowIndex=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_ROW_INDEX_CHANGED))},e.prototype.setUiLevel=function(t){this.uiLevel!==t&&(this.uiLevel=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_UI_LEVEL_CHANGED)))},e.prototype.setExpanded=function(t){if(this.expanded!==t){this.expanded=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_EXPANDED_CHANGED));var o=this.createGlobalRowEvent(s.Events.EVENT_ROW_GROUP_OPENED);this.mainEventService.dispatchEvent(o)}},e.prototype.createGlobalRowEvent=function(e){return{type:e,node:this,data:this.data,rowIndex:this.rowIndex,rowPinned:this.rowPinned,context:this.gridOptionsWrapper.getContext(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()}},e.prototype.dispatchLocalEvent=function(e){this.eventService&&this.eventService.dispatchEvent(e)},e.prototype.setDataValue=function(e,t){var o=this.columnController.getPrimaryColumn(e);this.valueService.setValue(this,o,t),this.dispatchCellChangedEvent(o,t)},e.prototype.setGroupValue=function(e,t){var o=this.columnController.getGridColumn(e);h.Utils.missing(this.groupData)&&(this.groupData={}),this.groupData[o.getColId()]=t,this.dispatchCellChangedEvent(o,t)},e.prototype.setAggData=function(e){var t=this,o=h.Utils.getAllKeysInObjects([this.aggData,e]);this.aggData=e,this.eventService&&o.forEach(function(e){var o=t.columnController.getGridColumn(e),i=t.data?t.data[e]:void 0;t.dispatchCellChangedEvent(o,i)})},e.prototype.dispatchCellChangedEvent=function(t,o){var i={type:e.EVENT_CELL_CHANGED,node:this,column:t,newValue:o};this.dispatchLocalEvent(i)},e.prototype.resetQuickFilterAggregateText=function(){this.quickFilterAggregateText=null},e.prototype.isExpandable=function(){return this.group||this.canFlower},e.prototype.isSelected=function(){return this.footer?this.sibling.isSelected():this.selected},e.prototype.depthFirstSearch=function(e){this.childrenAfterGroup&&this.childrenAfterGroup.forEach(function(t){return t.depthFirstSearch(e)}),e(this)},e.prototype.calculateSelectedFromChildren=function(){var e,t=!1,o=!1,i=!1;if(this.childrenAfterGroup)for(var n=0;n<this.childrenAfterGroup.length;n++){var r=this.childrenAfterGroup[n].isSelected();switch(r){case!0:t=!0;break;case!1:o=!0;break;default:i=!0}}e=i?void 0:!(!t||o)||!(!t&&o)&&void 0,this.selectThisNode(e)},e.prototype.calculateSelectedFromChildrenBubbleUp=function(){this.calculateSelectedFromChildren(),this.parent&&this.parent.calculateSelectedFromChildrenBubbleUp()},e.prototype.setSelectedInitialValue=function(e){this.selected=e},e.prototype.setSelected=function(e,t,o){void 0===t&&(t=!1),void 0===o&&(o=!1),this.setSelectedParams({newValue:e,clearSelection:t,tailingNodeInSequence:o,rangeSelect:!1})},e.prototype.isRowPinned=function(){return this.rowPinned===d.Constants.PINNED_TOP||this.rowPinned===d.Constants.PINNED_BOTTOM},e.prototype.setSelectedParams=function(e){var t=this.gridOptionsWrapper.isGroupSelectsChildren(),o=!0===e.newValue,i=!0===e.clearSelection,n=!0===e.tailingNodeInSequence,r=!0===e.rangeSelect,a=t&&!0===e.groupSelectsFiltered;if(void 0===this.id)return console.warn("ag-Grid: cannot select node until id for node is known"),0;if(this.rowPinned)return console.log("ag-Grid: cannot select pinned rows"),0;if(this.footer){return this.sibling.setSelectedParams(e)}if(r){var l=this.selectionController.getLastSelectedNode()!==this,p=this.gridOptionsWrapper.isRowSelectionMulti();if(l&&p)return this.doRowRangeSelection()}var u=0;a&&this.group||this.selectThisNode(o)&&u++;if(t&&this.group&&(u+=this.selectChildNodes(o,a)),!n){if(!o||!i&&this.gridOptionsWrapper.isRowSelectionMulti()||(u+=this.selectionController.clearOtherNodes(this)),u>0){a?this.calculatedSelectedForAllGroupNodes():t&&this.parent&&this.parent.calculateSelectedFromChildrenBubbleUp();var c={type:s.Events.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.mainEventService.dispatchEvent(c)}o&&this.selectionController.setLastSelectedNode(this)}return u},e.prototype.doRowRangeSelection=function(){var e=0,t=this.gridOptionsWrapper.isGroupSelectsChildren(),o=this.selectionController.getLastSelectedNode();this.rowModel.getNodesInRangeForSelection(o,this).forEach(function(o){o.group&&t||o.selectThisNode(!0)&&e++}),t&&this.calculatedSelectedForAllGroupNodes();var i={type:s.Events.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};return this.mainEventService.dispatchEvent(i),e},e.prototype.isParentOfNode=function(e){for(var t=this.parent;t;){if(t===e)return!0;t=t.parent}return!1},e.prototype.calculatedSelectedForAllGroupNodes=function(){this.rowModel.getTopLevelNodes().forEach(function(e){e.group&&(e.depthFirstSearch(function(e){e.group&&e.calculateSelectedFromChildren()}),e.calculateSelectedFromChildren())})},e.prototype.selectThisNode=function(t){if(this.selected===t)return!1;this.selected=t,this.eventService&&this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_ROW_SELECTED));var o=this.createGlobalRowEvent(s.Events.EVENT_ROW_SELECTED);return this.mainEventService.dispatchEvent(o),!0},e.prototype.selectChildNodes=function(e,t){var o=t?this.childrenAfterFilter:this.childrenAfterGroup,i=0;if(!h.Utils.missing(o)){for(var n=0;n<o.length;n++)i+=o[n].setSelectedParams({newValue:e,clearSelection:!1,tailingNodeInSequence:!0});return i}},e.prototype.addEventListener=function(e,t){this.eventService||(this.eventService=new r.EventService),this.eventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventService.removeEventListener(e,t)},e.prototype.onMouseEnter=function(){this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_MOUSE_ENTER))},e.prototype.onMouseLeave=function(){this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_MOUSE_LEAVE))},e.prototype.getFirstChildOfFirstChild=function(e){for(var t,o=this,i=!0,n=!1;i&&!n;){var r=o.parent;h.Utils.exists(r)&&o.firstChild?r.rowGroupColumn===e&&(n=!0,t=r):i=!1,o=r}return n?t:null},e.EVENT_ROW_SELECTED="rowSelected",e.EVENT_DATA_CHANGED="dataChanged",e.EVENT_CELL_CHANGED="cellChanged",e.EVENT_ALL_CHILDREN_COUNT_CELL_CHANGED="allChildrenCountChanged",e.EVENT_MOUSE_ENTER="mouseEnter",e.EVENT_MOUSE_LEAVE="mouseLeave",e.EVENT_HEIGHT_CHANGED="heightChanged",e.EVENT_TOP_CHANGED="topChanged",e.EVENT_FIRST_CHILD_CHANGED="firstChildChanged",e.EVENT_LAST_CHILD_CHANGED="lastChildChanged",e.EVENT_CHILD_INDEX_CHANGED="childIndexChanged",e.EVENT_ROW_INDEX_CHANGED="rowIndexChanged",e.EVENT_EXPANDED_CHANGED="expandedChanged",e.EVENT_UI_LEVEL_CHANGED="uiLevelChanged",i([c.Autowired("eventService"),n("design:type",r.EventService)],e.prototype,"mainEventService",void 0),i([c.Autowired("gridOptionsWrapper"),n("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([c.Autowired("selectionController"),n("design:type",l.SelectionController)],e.prototype,"selectionController",void 0),i([c.Autowired("columnController"),n("design:type",u.ColumnController)],e.prototype,"columnController",void 0),i([c.Autowired("valueService"),n("design:type",p.ValueService)],e.prototype,"valueService",void 0),i([c.Autowired("rowModel"),n("design:type",Object)],e.prototype,"rowModel",void 0),i([c.Autowired("context"),n("design:type",c.Context)],e.prototype,"context",void 0),i([c.Autowired("valueCache"),n("design:type",f.ValueCache)],e.prototype,"valueCache",void 0),i([c.Autowired("columnApi"),n("design:type",u.ColumnApi)],e.prototype,"columnApi",void 0),i([c.Autowired("gridApi"),n("design:type",g.GridApi)],e.prototype,"gridApi",void 0),e}();t.RowNode=y},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(4),s=o(20),a=o(15),l=o(7),p=o(8),u=o(11),c=o(5),d=o(32),h=function(){function e(){this.initialised=!1}return e.prototype.init=function(){this.cellExpressions=this.gridOptionsWrapper.isEnableCellExpressions(),this.initialised=!0},e.prototype.getValue=function(e,t,o){void 0===o&&(o=!1),this.initialised||this.init();var i,n=e.getColDef(),r=n.field,s=e.getId(),a=t.data,l=t.groupData&&void 0!==t.groupData[s],u=!o&&t.aggData&&void 0!==t.aggData[s];if(i=l?t.groupData[s]:u?t.aggData[s]:n.valueGetter?this.executeValueGetter(n.valueGetter,a,e,t):r&&a?p._.getValueUsingField(a,r,e.isFieldContainsDots()):void 0,this.cellExpressions&&"string"==typeof i&&0===i.indexOf("=")){var c=i.substring(1);i=this.executeValueGetter(c,a,e,t)}return i},e.prototype.setValue=function(e,t,o){var i=this.columnController.getPrimaryColumn(t);if(e&&i){var n=e.data;p._.missing(n)&&(e.data={});var r=i.getColDef(),s=r.field,a=r.newValueHandler,l=r.valueSetter;if(p._.missing(s)&&p._.missing(a)&&p._.missing(l))return void console.warn("ag-Grid: you need either field or valueSetter set on colDef for editing to work");var c={node:e,data:e.data,oldValue:this.getValue(i,e),newValue:o,colDef:i.getColDef(),column:i,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};c.newValue=o;var d;if(d=p._.exists(a)?a(c):p._.exists(l)?this.expressionService.evaluate(l,c):this.setValueUsingField(n,s,o,i.isFieldContainsDots()),void 0===d&&(d=!0),d){e.resetQuickFilterAggregateText(),this.valueCache.onDataChanged(),c.newValue=this.getValue(i,e),"function"==typeof i.getColDef().onCellValueChanged&&i.getColDef().onCellValueChanged(c);var h={type:u.Events.EVENT_CELL_VALUE_CHANGED,event:null,rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:c.column,api:c.api,colDef:c.colDef,columnApi:c.columnApi,context:c.context,data:e.data,node:e,oldValue:c.oldValue,newValue:c.newValue,value:c.newValue};this.eventService.dispatchEvent(h)}}},e.prototype.setValueUsingField=function(e,t,o,i){var n;if(i)for(var r=t.split("."),s=e;r.length>0&&s;){var a=r.shift();0===r.length?s[a]=o:s=s[a]}else e[t]=o;return!n},e.prototype.executeValueGetter=function(e,t,o,i){var n=o.getId(),r=this.valueCache.getValue(i,n);if(void 0!==r)return r;var s={data:t,node:i,column:o,colDef:o.getColDef(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),getValue:this.getValueCallback.bind(this,i)},a=this.expressionService.evaluate(e,s);return this.valueCache.setValue(i,n,a),a},e.prototype.getValueCallback=function(e,t){var o=this.columnController.getPrimaryColumn(t);return o?this.getValue(o,e):null},i([l.Autowired("gridOptionsWrapper"),n("design:type",r.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([l.Autowired("expressionService"),n("design:type",s.ExpressionService)],e.prototype,"expressionService",void 0),i([l.Autowired("columnController"),n("design:type",a.ColumnController)],e.prototype,"columnController",void 0),i([l.Autowired("eventService"),n("design:type",c.EventService)],e.prototype,"eventService",void 0),i([l.Autowired("valueCache"),n("design:type",d.ValueCache)],e.prototype,"valueCache",void 0),i([l.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),e=i([l.Bean("valueService")],e)}();t.ValueService=h},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(7),s=o(4),a=function(){function e(){this.cacheVersion=0}return e.prototype.init=function(){this.active=this.gridOptionsWrapper.isValueCache(),this.neverExpires=this.gridOptionsWrapper.isValueCacheNeverExpires()},e.prototype.onDataChanged=function(){this.neverExpires||this.expire()},e.prototype.expire=function(){this.cacheVersion++},e.prototype.setValue=function(e,t,o){this.active&&(e.__cacheVersion!==this.cacheVersion&&(e.__cacheVersion=this.cacheVersion,e.__cacheData={}),e.__cacheData[t]=o)},e.prototype.getValue=function(e,t){return this.active&&e.__cacheVersion===this.cacheVersion&&void 0!==e.__cacheData[t]?e.__cacheData[t]:void 0},i([r.Autowired("gridOptionsWrapper"),n("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),e=i([r.Bean("valueCache")],e)}();t.ValueCache=a},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(8),n=o(34),r=function(){function e(e){this.rowIndex=e.rowIndex,this.column=e.column,this.floating=i.Utils.makeNull(e.floating)}return e.prototype.getGridCellDef=function(){return{rowIndex:this.rowIndex,column:this.column,floating:this.floating}},e.prototype.getGridRow=function(){return new n.GridRow(this.rowIndex,this.floating)},e.prototype.toString=function(){return"rowIndex = "+this.rowIndex+", floating = "+this.floating+", column = "+(this.column?this.column.getId():null)},e.prototype.createId=function(){return this.rowIndex+"."+this.floating+"."+this.column.getId()},e}();t.GridCell=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(9),n=o(8),r=o(33),s=function(){function e(e,t){this.rowIndex=e,this.floating=n.Utils.makeNull(t)}return e.prototype.isFloatingTop=function(){return this.floating===i.Constants.PINNED_TOP},e.prototype.isFloatingBottom=function(){return this.floating===i.Constants.PINNED_BOTTOM},e.prototype.isNotFloating=function(){return!this.isFloatingBottom()&&!this.isFloatingTop()},e.prototype.equals=function(e){return this.rowIndex===e.rowIndex&&this.floating===e.floating},e.prototype.toString=function(){return"rowIndex = "+this.rowIndex+", floating = "+this.floating},e.prototype.getGridCell=function(e){var t={rowIndex:this.rowIndex,floating:this.floating,column:e};return new r.GridCell(t)},e.prototype.before=function(e){var t=e.floating;switch(this.floating){case i.Constants.PINNED_TOP:if(t!==i.Constants.PINNED_TOP)return!0;break;case i.Constants.PINNED_BOTTOM:if(t!==i.Constants.PINNED_BOTTOM)return!1;break;default:if(n.Utils.exists(t))return t!==i.Constants.PINNED_TOP}return this.rowIndex<e.rowIndex},e}();t.GridRow=s},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var n=o(8),r=o(36),s=new n.NumberSequence,a=function(e){function t(t){var o=e.call(this)||this;return o.childComponents=[],o.hydrated=!1,o.annotatedEventListeners=[],o.visible=!0,o.compId=s.next(),t&&o.setTemplate(t),o}return i(t,e),t.prototype.setTemplateNoHydrate=function(e){this.template=e},t.prototype.afterGuiAttached=function(e){!this.eHtmlElement&&e.eComponent&&this.setHtmlElement(e.eComponent)},t.prototype.getCompId=function(){return this.compId},t.prototype.instantiate=function(e){var t=this.getHtmlElement();this.instantiateRecurse(t,e)},t.prototype.instantiateRecurse=function(e,t){for(var o=e.childNodes?e.childNodes.length:0,i=0;i<o;i++){var n=e.childNodes[i],r=t.createComponent(n);r?this.swapComponentForNode(r,e,n):n.childNodes&&this.instantiateRecurse(n,t)}},t.prototype.swapComponentForNode=function(e,t,o){var i=e.getHtmlElement();t.replaceChild(i,o),this.childComponents.push(e),this.swapInComponentForQuerySelectors(e,o)},t.prototype.swapInComponentForQuerySelectors=function(e,t){for(var o=Object.getPrototypeOf(this),i=this;null!=o;){var n=o.__agComponentMetaData,r=o.constructor.name;n&&n[r]&&n[r].querySelectors&&n[r].querySelectors.forEach(function(o){i[o.attributeName]===t&&(i[o.attributeName]=e)}),o=Object.getPrototypeOf(o)}},t.prototype.setTemplate=function(e){this.template=e;var t=n.Utils.loadTemplate(e);this.setHtmlElement(t)},t.prototype.setHtmlElement=function(e){this.eHtmlElement=e,this.eHtmlElement.__agComponent=this,this.hydrate()},t.prototype.hydrate=function(){this.addAnnotatedEventListeners(),this.wireQuerySelectors(),this.hydrated=!0},t.prototype.attributesSet=function(){},t.prototype.wireQuerySelectors=function(){var e=this.getHtmlElement();if(e)for(var t=Object.getPrototypeOf(this),o=function(){var o=t.__agComponentMetaData,n=t.constructor.name;if(o&&o[n]&&o[n].querySelectors){var r=i;o[n].querySelectors.forEach(function(t){var o=e.querySelector(t.querySelector);if(o){var i=o.__agComponent;r[t.attributeName]=i||o}})}t=Object.getPrototypeOf(t)},i=this;null!=t;)o()},t.prototype.addAnnotatedEventListeners=function(){var e=this;this.removeAnnotatedEventListeners();var t=this.getHtmlElement();if(t)for(var o=Object.getPrototypeOf(this);null!=o;){var i=o.__agComponentMetaData,n=o.constructor.name;i&&i[n]&&i[n].listenerMethods&&(this.annotatedEventListeners||(this.annotatedEventListeners=[]),i[n].listenerMethods.forEach(function(o){var i=e[o.methodName].bind(e);t.addEventListener(o.eventName,i),e.annotatedEventListeners.push({eventName:o.eventName,listener:i})})),o=Object.getPrototypeOf(o)}},t.prototype.removeAnnotatedEventListeners=function(){if(this.annotatedEventListeners){var e=this.getHtmlElement();e&&(this.annotatedEventListeners.forEach(function(t){e.removeEventListener(t.eventName,t.listener)}),this.annotatedEventListeners=null)}},t.prototype.getGui=function(){return this.eHtmlElement?this.eHtmlElement:this.template},t.prototype.getHtmlElement=function(){return this.eHtmlElement?this.eHtmlElement:(console.warn("getHtmlElement() called on component before gui was attached"),null)},t.prototype.setHtmlElementNoHydrate=function(e){this.eHtmlElement=e},t.prototype.queryForHtmlElement=function(e){return this.getHtmlElement().querySelector(e)},t.prototype.queryForHtmlInputElement=function(e){return this.getHtmlElement().querySelector(e)},t.prototype.appendChild=function(e){var t=this.getHtmlElement();if(n.Utils.isNodeOrElement(e))t.appendChild(e);else{var o=e;t.appendChild(n.Utils.ensureElement(o.getGui())),this.childComponents.push(o)}},t.prototype.addFeature=function(e,t){e.wireBean(t),t.destroy&&this.addDestroyFunc(t.destroy.bind(t))},t.prototype.isVisible=function(){return this.visible},t.prototype.setVisible=function(e){var o=this.getHtmlElement();if(e!==this.visible){this.visible=e,n.Utils.addOrRemoveCssClass(o,"ag-hidden",!e);var i={type:t.EVENT_VISIBLE_CHANGED,visible:this.visible};this.dispatchEvent(i)}},t.prototype.addOrRemoveCssClass=function(e,t){var o=this.getHtmlElement();n.Utils.addOrRemoveCssClass(o,e,t)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.childComponents.forEach(function(e){return e.destroy()}),this.childComponents.length=0,this.hydrated&&this.removeAnnotatedEventListeners()},t.prototype.addGuiEventListener=function(e,t){var o=this.getHtmlElement();o.addEventListener(e,t),this.addDestroyFunc(function(){return o.removeEventListener(e,t)})},t.prototype.addCssClass=function(e){var t=this.getHtmlElement();n.Utils.addCssClass(t,e)},t.prototype.removeCssClass=function(e){var t=this.getHtmlElement();n.Utils.removeCssClass(t,e)},t.prototype.getAttribute=function(e){var t=this.getHtmlElement();return t?t.getAttribute(e):null},t.prototype.getRefElement=function(e){return this.queryForHtmlElement('[ref="'+e+'"]')},t.EVENT_VISIBLE_CHANGED="visibleChanged",t}(r.BeanStub);t.Component=a},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(5),n=o(4),r=o(8),s=function(){function e(){this.destroyFunctions=[]}return e.prototype.destroy=function(){this.destroyFunctions.forEach(function(e){return e()}),this.destroyFunctions.length=0},e.prototype.addEventListener=function(e,t){this.localEventService||(this.localEventService=new i.EventService),this.localEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.localEventService&&this.localEventService.removeEventListener(e,t)},e.prototype.dispatchEventAsync=function(e){var t=this;setTimeout(function(){return t.dispatchEvent(e)},0)},e.prototype.dispatchEvent=function(e){this.localEventService&&this.localEventService.dispatchEvent(e)},e.prototype.addDestroyableEventListener=function(e,t,o){e instanceof HTMLElement?r._.addSafePassiveEventListener(e,t,o):(n.GridOptionsWrapper,e.addEventListener(t,o)),this.destroyFunctions.push(function(){e instanceof HTMLElement?e.removeEventListener(t,o):(n.GridOptionsWrapper,e.removeEventListener(t,o))})},e.prototype.addDestroyFunc=function(e){this.destroyFunctions.push(e)},e}();t.BeanStub=s},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),n=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=o(35),a=o(30),l=o(8),p=o(7),u=o(4),c=o(11),d=o(5),h=o(12),f=o(15),g=function(e){function t(){return e.call(this,'<span class="ag-selection-checkbox"/>')||this}return i(t,e),t.prototype.createAndAddIcons=function(){this.eCheckedIcon=l.Utils.createIconNoSpan("checkboxChecked",this.gridOptionsWrapper,this.column),this.eUncheckedIcon=l.Utils.createIconNoSpan("checkboxUnchecked",this.gridOptionsWrapper,this.column),this.eIndeterminateIcon=l.Utils.createIconNoSpan("checkboxIndeterminate",this.gridOptionsWrapper,this.column);var e=this.getHtmlElement();e.appendChild(this.eCheckedIcon),e.appendChild(this.eUncheckedIcon),e.appendChild(this.eIndeterminateIcon)},t.prototype.onSelectionChanged=function(){var e=this.rowNode.isSelected();l.Utils.setVisible(this.eCheckedIcon,!0===e),l.Utils.setVisible(this.eUncheckedIcon,!1===e),l.Utils.setVisible(this.eIndeterminateIcon,"boolean"!=typeof e)},t.prototype.onCheckedClicked=function(){var e=this.gridOptionsWrapper.isGroupSelectsFiltered();return this.rowNode.setSelectedParams({newValue:!1,groupSelectsFiltered:e})},t.prototype.onUncheckedClicked=function(e){var t=this.gridOptionsWrapper.isGroupSelectsFiltered();return this.rowNode.setSelectedParams({newValue:!0,rangeSelect:e.shiftKey,groupSelectsFiltered:t})},t.prototype.onIndeterminateClicked=function(e){0===this.onUncheckedClicked(e)&&this.onCheckedClicked()},t.prototype.init=function(e){this.rowNode=e.rowNode,this.column=e.column,this.visibleFunc=e.visibleFunc,this.createAndAddIcons(),this.onSelectionChanged(),this.addGuiEventListener("click",function(e){return e.stopPropagation()}),this.addGuiEventListener("dblclick",function(e){return e.stopPropagation()}),this.addDestroyableEventListener(this.eCheckedIcon,"click",this.onCheckedClicked.bind(this)),this.addDestroyableEventListener(this.eUncheckedIcon,"click",this.onUncheckedClicked.bind(this)),this.addDestroyableEventListener(this.eIndeterminateIcon,"click",this.onIndeterminateClicked.bind(this)),this.addDestroyableEventListener(this.rowNode,a.RowNode.EVENT_ROW_SELECTED,this.onSelectionChanged.bind(this)),this.visibleFunc&&(this.addDestroyableEventListener(this.eventService,c.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,this.showOrHideSelect.bind(this)),this.showOrHideSelect())},t.prototype.showOrHideSelect=function(){var e=this.createParams(),t=this.visibleFunc(e);this.setVisible(t)},t.prototype.createParams=function(){return{node:this.rowNode,data:this.rowNode.data,column:this.column,colDef:this.column.getColDef(),context:this.gridOptionsWrapper.getContext(),api:this.gridApi,columnApi:this.columnApi}},n([p.Autowired("gridOptionsWrapper"),r("design:type",u.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([p.Autowired("eventService"),r("design:type",d.EventService)],t.prototype,"eventService",void 0),n([p.Autowired("gridApi"),r("design:type",h.GridApi)],t.prototype,"gridApi",void 0),n([p.Autowired("columnApi"),r("design:type",f.ColumnApi)],t.prototype,"columnApi",void 0),t}(s.Component);t.CheckboxSelectionComponent=g},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(7),s=o(5),a=o(11),l=o(4),p=o(15),u=o(8),c=o(33),d=o(12),h=o(29),f=function(){function e(){}return e.prototype.init=function(){this.eventService.addEventListener(a.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.clearFocusedCell.bind(this)),this.eventService.addEventListener(a.Events.EVENT_COLUMN_EVERYTHING_CHANGED,this.clearFocusedCell.bind(this)),this.eventService.addEventListener(a.Events.EVENT_COLUMN_GROUP_OPENED,this.clearFocusedCell.bind(this)),this.eventService.addEventListener(a.Events.EVENT_COLUMN_MOVED,this.clearFocusedCell.bind(this)),this.eventService.addEventListener(a.Events.EVENT_COLUMN_PINNED,this.clearFocusedCell.bind(this)),this.eventService.addEventListener(a.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,this.clearFocusedCell.bind(this)),this.eventService.addEventListener(a.Events.EVENT_COLUMN_VISIBLE,this.clearFocusedCell.bind(this))},e.prototype.clearFocusedCell=function(){this.focusedCell=null,this.onCellFocused(!1)},e.prototype.getFocusedCell=function(){return this.focusedCell},e.prototype.getFocusCellToUseAfterRefresh=function(){if(this.gridOptionsWrapper.isSuppressFocusAfterRefresh())return null;if(!this.focusedCell)return null;var e=this.getGridCellForDomElement(document.activeElement);return e&&this.focusedCell.createId()===e.createId()?this.focusedCell:null},e.prototype.getGridCellForDomElement=function(e){for(var t=e;t;){var o=this.gridOptionsWrapper.getDomData(t,h.CellComp.DOM_DATA_KEY_CELL_COMP);if(o)return o.getGridCell();t=t.parentNode}return null},e.prototype.setFocusedCell=function(e,t,o,i){if(void 0===i&&(i=!1),!this.gridOptionsWrapper.isSuppressCellSelection()){var n=u.Utils.makeNull(this.columnController.getGridColumn(t));this.focusedCell=new c.GridCell({rowIndex:e,floating:u.Utils.makeNull(o),column:n}),this.onCellFocused(i)}},e.prototype.isCellFocused=function(e){return!u.Utils.missing(this.focusedCell)&&(this.focusedCell.column===e.column&&this.isRowFocused(e.rowIndex,e.floating))},e.prototype.isRowNodeFocused=function(e){return this.isRowFocused(e.rowIndex,e.rowPinned)},e.prototype.isAnyCellFocused=function(){return!!this.focusedCell},e.prototype.isRowFocused=function(e,t){if(u.Utils.missing(this.focusedCell))return!1;var o=u.Utils.makeNull(t);return this.focusedCell.rowIndex===e&&this.focusedCell.floating===o},e.prototype.onCellFocused=function(e){var t={type:a.Events.EVENT_CELL_FOCUSED,forceBrowserFocus:e,rowIndex:null,column:null,floating:null,api:this.gridApi,columnApi:this.columnApi,rowPinned:null};this.focusedCell&&(t.rowIndex=this.focusedCell.rowIndex,t.column=this.focusedCell.column,t.rowPinned=this.focusedCell.floating),this.eventService.dispatchEvent(t)},i([r.Autowired("eventService"),n("design:type",s.EventService)],e.prototype,"eventService",void 0),i([r.Autowired("gridOptionsWrapper"),n("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.Autowired("columnController"),n("design:type",p.ColumnController)],e.prototype,"columnController",void 0),i([r.Autowired("columnApi"),n("design:type",p.ColumnApi)],e.prototype,"columnApi",void 0),i([r.Autowired("gridApi"),n("design:type",d.GridApi)],e.prototype,"gridApi",void 0),i([r.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),e=i([r.Bean("focusedCellController")],e)}();t.FocusedCellController=f},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(7),s=o(8),a=o(5),l=o(11),p=o(15),u=o(12),c=function(){function e(){}return e.prototype.setScrollsVisible=function(e){if(this.vBody!==e.vBody||this.hBody!==e.hBody||this.vPinnedLeft!==e.vPinnedLeft||this.vPinnedRight!==e.vPinnedRight){this.vBody=e.vBody,this.hBody=e.hBody,this.vPinnedLeft=e.vPinnedLeft,this.vPinnedRight=e.vPinnedRight;var t={type:l.Events.EVENT_SCROLL_VISIBILITY_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}},e.prototype.isVBodyShowing=function(){return this.vBody},e.prototype.isHBodyShowing=function(){return this.hBody},e.prototype.isVPinnedLeftShowing=function(){return this.vPinnedLeft},e.prototype.isVPinnedRightShowing=function(){return this.vPinnedRight},e.prototype.getPinnedLeftWidth=function(){return this.columnController.getPinnedLeftContainerWidth()},e.prototype.getPinnedLeftWithScrollWidth=function(){var e=this.getPinnedLeftWidth();return this.vPinnedLeft&&(e+=s.Utils.getScrollbarWidth()),e},e.prototype.getPinnedRightWidth=function(){return this.columnController.getPinnedRightContainerWidth()},e.prototype.getPinnedRightWithScrollWidth=function(){var e=this.getPinnedRightWidth();return this.vPinnedRight&&(e+=s.Utils.getScrollbarWidth()),e},i([r.Autowired("eventService"),n("design:type",a.EventService)],e.prototype,"eventService",void 0),i([r.Autowired("columnController"),n("design:type",p.ColumnController)],e.prototype,"columnController",void 0),i([r.Autowired("columnApi"),n("design:type",p.ColumnApi)],e.prototype,"columnApi",void 0),i([r.Autowired("gridApi"),n("design:type",u.GridApi)],e.prototype,"gridApi",void 0),e=i([r.Bean("scrollVisibleService")],e)}();t.ScrollVisibleService=c},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(8),s=o(7),a=o(4),l=function(){function e(e){this.childCount=0,this.rowTemplatesToAdd=[],this.afterGuiAttachedCallbacks=[],this.eContainer=e.eContainer,this.eViewport=e.eViewport,this.hideWhenNoChildren=e.hideWhenNoChildren}return e.prototype.postConstruct=function(){this.domOrder=this.gridOptionsWrapper.isEnsureDomOrder()&&!this.gridOptionsWrapper.isForPrint(),this.checkVisibility()},e.prototype.getRowElement=function(e){return this.eContainer.querySelector('[comp-id="'+e+'"]')},e.prototype.setHeight=function(e){this.eContainer.style.height=e+"px"},e.prototype.flushRowTemplates=function(){if(0!==this.rowTemplatesToAdd.length){var e=this.rowTemplatesToAdd.join("");r.Utils.appendHtml(this.eContainer,e),this.rowTemplatesToAdd.length=0}this.afterGuiAttachedCallbacks.forEach(function(e){return e()}),this.afterGuiAttachedCallbacks.length=0,this.lastPlacedElement=null},e.prototype.appendRowTemplate=function(e,t){this.domOrder?this.lastPlacedElement=r.Utils.insertTemplateWithDomOrder(this.eContainer,e,this.lastPlacedElement):this.rowTemplatesToAdd.push(e),this.afterGuiAttachedCallbacks.push(t),this.childCount++,this.checkVisibility()},e.prototype.ensureDomOrder=function(e){this.domOrder&&(r.Utils.ensureDomOrder(this.eContainer,e,this.lastPlacedElement),this.lastPlacedElement=e)},e.prototype.removeRowElement=function(e){this.eContainer.removeChild(e),this.childCount--,this.checkVisibility()},e.prototype.checkVisibility=function(){if(this.hideWhenNoChildren){var e=this.eViewport?this.eViewport:this.eContainer,t=this.childCount>0;this.visible!==t&&(this.visible=t,r.Utils.setVisible(e,t))}},i([s.Autowired("gridOptionsWrapper"),n("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([s.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"postConstruct",null),e}();t.RowContainerComponent=l},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),n=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=o(36),a=o(5),l=o(11),p=o(8),u=o(7),c=o(4),d=o(24),h=o(39),f=o(27),g=o(15),y=o(12),v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.notActive=function(){return!this.gridOptionsWrapper.isPaginationAutoPageSize()},t.prototype.postConstruct=function(){this.addDestroyableEventListener(this.eventService,l.Events.EVENT_BODY_HEIGHT_CHANGED,this.onBodyHeightChanged.bind(this)),this.addDestroyableEventListener(this.eventService,l.Events.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.checkPageSize()},t.prototype.onScrollVisibilityChanged=function(){this.checkPageSize()},t.prototype.onBodyHeightChanged=function(){this.checkPageSize()},t.prototype.checkPageSize=function(){if(!this.notActive()){var e=this.gridOptionsWrapper.getRowHeightAsNumber(),t=this.gridPanel.getBodyHeight();if(this.scrollVisibleService.isHBodyShowing()&&(t-=this.gridOptionsWrapper.getScrollbarWidth()),t>0){var o=Math.floor(t/e);this.gridOptionsWrapper.setProperty("paginationPageSize",o)}}},n([u.Autowired("gridPanel"),r("design:type",d.GridPanel)],t.prototype,"gridPanel",void 0),n([u.Autowired("eventService"),r("design:type",a.EventService)],t.prototype,"eventService",void 0),n([u.Autowired("gridOptionsWrapper"),r("design:type",c.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([u.Autowired("scrollVisibleService"),r("design:type",h.ScrollVisibleService)],t.prototype,"scrollVisibleService",void 0),n([u.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],t.prototype,"postConstruct",null),t=n([u.Bean("paginationAutoPageSizeService")],t)}(s.BeanStub);t.PaginationAutoPageSizeService=v;var m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.currentPage=0,t.topRowIndex=0,t.bottomRowIndex=0,t.pixelOffset=0,t}return i(t,e),t.prototype.postConstruct=function(){this.active=this.gridOptionsWrapper.isPagination(),this.addDestroyableEventListener(this.eventService,l.Events.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,"paginationPageSize",this.onModelUpdated.bind(this)),this.onModelUpdated()},t.prototype.isLastRowFound=function(){return this.rowModel.isLastRowFound()},t.prototype.onModelUpdated=function(e){this.setIndexesAndBounds();var t={type:l.Events.EVENT_PAGINATION_CHANGED,animate:!!e&&e.animate,newData:!!e&&e.newData,newPage:!!e&&e.newPage,keepRenderedRows:!!e&&e.keepRenderedRows,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},t.prototype.goToPage=function(e){if(this.active&&this.currentPage!==e){this.currentPage=e;var t={type:l.Events.EVENT_MODEL_UPDATED,animate:!1,keepRenderedRows:!1,newData:!1,newPage:!0,api:this.gridApi,columnApi:this.columnApi};this.onModelUpdated(t)}},t.prototype.getPixelOffset=function(){return this.pixelOffset},t.prototype.getRow=function(e){return this.rowModel.getRow(e)},t.prototype.getRowIndexAtPixel=function(e){return this.rowModel.getRowIndexAtPixel(e)},t.prototype.getCurrentPageHeight=function(){return p._.missing(this.topRowBounds)||p._.missing(this.bottomRowBounds)?0:this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight-this.topRowBounds.rowTop},t.prototype.isRowPresent=function(e){return!!this.rowModel.isRowPresent(e)&&(e.rowIndex>=this.topRowIndex&&e.rowIndex<=this.bottomRowIndex)},t.prototype.isEmpty=function(){return this.rowModel.isEmpty()},t.prototype.isRowsToRender=function(){return this.rowModel.isRowsToRender()},t.prototype.getNodesInRangeForSelection=function(e,t){return this.rowModel.getNodesInRangeForSelection(e,t)},t.prototype.forEachNode=function(e){return this.rowModel.forEachNode(e)},t.prototype.getType=function(){return this.rowModel.getType()},t.prototype.getRowBounds=function(e){return this.rowModel.getRowBounds(e)},t.prototype.getPageFirstRow=function(){return this.pageSize*this.currentPage},t.prototype.getPageLastRow=function(){var e=this.pageSize*(this.currentPage+1)-1,t=this.rowModel.getPageLastRow();return t>e?e:t},t.prototype.getRowCount=function(){return this.rowModel.getRowCount()},t.prototype.goToPageWithIndex=function(e){if(this.active){var t=Math.floor(e/this.pageSize);this.goToPage(t)}},t.prototype.getTotalRowCount=function(){return this.rowModel.getPageLastRow()+1},t.prototype.isLastPageFound=function(){return this.rowModel.isLastRowFound()},t.prototype.getCurrentPage=function(){return this.currentPage},t.prototype.goToNextPage=function(){this.goToPage(this.currentPage+1)},t.prototype.goToPreviousPage=function(){this.goToPage(this.currentPage-1)},t.prototype.goToFirstPage=function(){this.goToPage(0)},t.prototype.goToLastPage=function(){var e=this.rowModel.getPageLastRow()+1,t=Math.floor(e/this.pageSize);this.goToPage(t)},t.prototype.getPageSize=function(){return this.pageSize},t.prototype.getTotalPages=function(){return this.totalPages},t.prototype.setPageSize=function(){this.pageSize=this.gridOptionsWrapper.getPaginationPageSize(),this.pageSize>=1||(this.pageSize=100)},t.prototype.setIndexesAndBounds=function(){if(this.active){this.setPageSize();var e=this.getTotalRowCount();this.totalPages=Math.floor((e-1)/this.pageSize)+1,this.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!p._.isNumeric(this.currentPage)||this.currentPage<0)&&(this.currentPage=0),this.topRowIndex=this.pageSize*this.currentPage,this.bottomRowIndex=this.pageSize*(this.currentPage+1)-1;var t=this.rowModel.getPageLastRow();this.bottomRowIndex>t&&(this.bottomRowIndex=t)}else this.pageSize=this.rowModel.getPageLastRow()+1,this.totalPages=1,this.currentPage=0,this.topRowIndex=0,this.bottomRowIndex=this.rowModel.getPageLastRow();this.topRowBounds=this.rowModel.getRowBounds(this.topRowIndex),this.bottomRowBounds=this.rowModel.getRowBounds(this.bottomRowIndex),this.pixelOffset=p._.exists(this.topRowBounds)?this.topRowBounds.rowTop:0},n([u.Autowired("rowModel"),r("design:type",Object)],t.prototype,"rowModel",void 0),n([u.Autowired("gridPanel"),r("design:type",d.GridPanel)],t.prototype,"gridPanel",void 0),n([u.Autowired("eventService"),r("design:type",a.EventService)],t.prototype,"eventService",void 0),n([u.Autowired("gridOptionsWrapper"),r("design:type",c.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([u.Autowired("selectionController"),r("design:type",f.SelectionController)],t.prototype,"selectionController",void 0),n([u.Autowired("columnApi"),r("design:type",g.ColumnApi)],t.prototype,"columnApi",void 0),n([u.Autowired("gridApi"),r("design:type",y.GridApi)],t.prototype,"gridApi",void 0),n([u.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],t.prototype,"postConstruct",null),t=n([u.Bean("paginationProxy")],t)}(s.BeanStub);t.PaginationProxy=m},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),n=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=o(35),a=o(7),l=o(4),p=o(8),u=function(e){function t(t){var o=e.call(this,'<div class="ag-popup-editor" tabindex="-1"/>')||this;return o.getGuiCalledOnChild=!1,o.cellEditor=t,o}return i(t,e),t.prototype.onKeyDown=function(e){this.params.onKeyDown(e)},t.prototype.getGui=function(){return this.getGuiCalledOnChild||(this.appendChild(p._.assertHtmlElement(this.cellEditor.getGui())),this.getGuiCalledOnChild=!0),e.prototype.getGui.call(this)},t.prototype.init=function(o){var i=this;this.params=o,this.gridOptionsWrapper.setDomData(this.getHtmlElement(),t.DOM_KEY_POPUP_EDITOR_WRAPPER,!0),this.addDestroyFunc(function(){i.cellEditor.destroy&&i.cellEditor.destroy()}),this.addDestroyableEventListener(e.prototype.getHtmlElement.call(this),"keydown",this.onKeyDown.bind(this))},t.prototype.afterGuiAttached=function(){this.cellEditor.afterGuiAttached&&this.cellEditor.afterGuiAttached({eComponent:p._.assertHtmlElement(this.cellEditor.getGui())})},t.prototype.getValue=function(){return this.cellEditor.getValue()},t.prototype.isPopup=function(){return!0},t.prototype.isCancelBeforeStart=function(){if(this.cellEditor.isCancelBeforeStart)return this.cellEditor.isCancelBeforeStart()},t.prototype.isCancelAfterEnd=function(){if(this.cellEditor.isCancelAfterEnd)return this.cellEditor.isCancelAfterEnd()},t.prototype.focusIn=function(){this.cellEditor.focusIn&&this.cellEditor.focusIn()},t.prototype.focusOut=function(){this.cellEditor.focusOut&&this.cellEditor.focusOut()},t.DOM_KEY_POPUP_EDITOR_WRAPPER="popupEditorWrapper",n([a.Autowired("gridOptionsWrapper"),r("design:type",l.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),t}(s.Component);t.PopupEditorWrapper=u},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(o,i){t(o,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(4),a=o(15),l=o(24),p=o(5),u=o(6),c=o(11),d=o(7),h=o(7),f=o(7),g=o(7),y=0,v=function(){function e(){this.instanceId=y++,this.consuming=!1}return e.prototype.setBeans=function(e){this.logger=e.create("AlignedGridsService")},e.prototype.init=function(){this.eventService.addEventListener(c.Events.EVENT_COLUMN_MOVED,this.fireColumnEvent.bind(this)),this.eventService.addEventListener(c.Events.EVENT_COLUMN_VISIBLE,this.fireColumnEvent.bind(this)),this.eventService.addEventListener(c.Events.EVENT_COLUMN_PINNED,this.fireColumnEvent.bind(this)),this.eventService.addEventListener(c.Events.EVENT_COLUMN_GROUP_OPENED,this.fireColumnEvent.bind(this)),this.eventService.addEventListener(c.Events.EVENT_COLUMN_RESIZED,this.fireColumnEvent.bind(this)),this.eventService.addEventListener(c.Events.EVENT_BODY_SCROLL,this.fireScrollEvent.bind(this))},e.prototype.fireEvent=function(e){if(!this.consuming){var t=this.gridOptionsWrapper.getAlignedGrids();t&&t.forEach(function(t){if(t.api){var o=t.api.__getAlignedGridService();e(o)}})}},e.prototype.onEvent=function(e){this.consuming=!0,e(),this.consuming=!1},e.prototype.fireColumnEvent=function(e){this.fireEvent(function(t){t.onColumnEvent(e)})},e.prototype.fireScrollEvent=function(e){"horizontal"===e.direction&&this.fireEvent(function(t){t.onScrollEvent(e)})},e.prototype.onScrollEvent=function(e){var t=this;this.onEvent(function(){t.gridPanel.setHorizontalScrollPosition(e.left)})},e.prototype.getMasterColumns=function(e){var t=[];return e.columns?e.columns.forEach(function(e){t.push(e)}):e.column&&t.push(e.column),t},e.prototype.getColumnIds=function(e){var t=[];return e.columns?e.columns.forEach(function(e){t.push(e.getColId())}):e.columns&&t.push(e.column.getColId()),t},e.prototype.onColumnEvent=function(e){var t=this;this.onEvent(function(){switch(e.type){case c.Events.EVENT_COLUMN_MOVED:case c.Events.EVENT_COLUMN_VISIBLE:case c.Events.EVENT_COLUMN_PINNED:case c.Events.EVENT_COLUMN_RESIZED:var o=e;t.processColumnEvent(o);break;case c.Events.EVENT_COLUMN_GROUP_OPENED:var i=e;t.processGroupOpenedEvent(i);break;case c.Events.EVENT_COLUMN_PIVOT_CHANGED:console.warn("ag-Grid: pivoting is not supported with aligned grids. You can only use one of these features at a time in a grid.")}})},e.prototype.processGroupOpenedEvent=function(e){var t,o=e.columnGroup;if(o){var i=o.getGroupId();t=this.columnController.getOriginalColumnGroup(i)}o&&!t||(this.logger.log("onColumnEvent-> processing "+event+" expanded = "+o.isExpanded()),this.columnController.setColumnGroupOpened(t,o.isExpanded()))},e.prototype.processColumnEvent=function(e){var t,o=this,i=e.column;if(i&&(t=this.columnController.getPrimaryColumn(i.getColId())),!i||t){var n=this.getColumnIds(e),r=this.getMasterColumns(e);switch(e.type){case c.Events.EVENT_COLUMN_MOVED:var s=e;this.logger.log("onColumnEvent-> processing "+e.type+" toIndex = "+s.toIndex),this.columnController.moveColumns(n,s.toIndex);break;case c.Events.EVENT_COLUMN_VISIBLE:var a=e;this.logger.log("onColumnEvent-> processing "+e.type+" visible = "+a.visible),this.columnController.setColumnsVisible(n,a.visible);break;case c.Events.EVENT_COLUMN_PINNED:var l=e;this.logger.log("onColumnEvent-> processing "+e.type+" pinned = "+l.pinned),this.columnController.setColumnsPinned(n,l.pinned);break;case c.Events.EVENT_COLUMN_RESIZED:var p=e;r.forEach(function(t){o.logger.log("onColumnEvent-> processing "+e.type+" actualWidth = "+t.getActualWidth()),o.columnController.setColumnWidth(t.getColId(),t.getActualWidth(),p.finished)})}}},i([f.Autowired("gridOptionsWrapper"),n("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([f.Autowired("columnController"),n("design:type",a.ColumnController)],e.prototype,"columnController",void 0),i([f.Autowired("gridPanel"),n("design:type",l.GridPanel)],e.prototype,"gridPanel",void 0),i([f.Autowired("eventService"),n("design:type",p.EventService)],e.prototype,"eventService",void 0),i([r(0,h.Qualifier("loggerFactory")),n("design:type",Function),n("design:paramtypes",[u.LoggerFactory]),n("design:returntype",void 0)],e.prototype,"setBeans",null),i([g.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),e=i([d.Bean("alignedGridsService")],e)}();t.AlignedGridsService=v},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(4),s=o(30),a=o(7),l=o(5),p=o(7),u=o(11),c=o(7),d=o(9),h=o(8),f=o(15),g=o(12),y=function(){function e(){}return e.prototype.init=function(){this.setPinnedTopRowData(this.gridOptionsWrapper.getPinnedTopRowData()),this.setPinnedBottomRowData(this.gridOptionsWrapper.getPinnedBottomRowData())},e.prototype.isEmpty=function(e){var t=e===d.Constants.PINNED_TOP?this.pinnedTopRows:this.pinnedBottomRows;return h.Utils.missingOrEmpty(t)},e.prototype.isRowsToRender=function(e){return!this.isEmpty(e)},e.prototype.getRowAtPixel=function(e,t){var o=t===d.Constants.PINNED_TOP?this.pinnedTopRows:this.pinnedBottomRows;if(h.Utils.missingOrEmpty(o))return 0;for(var i=0;i<o.length;i++){var n=o[i];if(n.rowTop+n.rowHeight-1>=e)return i}return o.length-1},e.prototype.setPinnedTopRowData=function(e){this.pinnedTopRows=this.createNodesFromData(e,!0);var t={type:u.Events.EVENT_PINNED_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},e.prototype.setPinnedBottomRowData=function(e){this.pinnedBottomRows=this.createNodesFromData(e,!1);var t={type:u.Events.EVENT_PINNED_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},e.prototype.createNodesFromData=function(e,t){var o=this,i=[];if(e){var n=0;e.forEach(function(e,r){var a=new s.RowNode;o.context.wireBean(a),a.data=e,a.rowPinned=t?d.Constants.PINNED_TOP:d.Constants.PINNED_BOTTOM,a.setRowTop(n),a.setRowHeight(o.gridOptionsWrapper.getRowHeightForNode(a)),a.setRowIndex(r),n+=a.rowHeight,i.push(a)})}return i},e.prototype.getPinnedTopRowData=function(){return this.pinnedTopRows},e.prototype.getPinnedBottomRowData=function(){return this.pinnedBottomRows},e.prototype.getPinnedTopTotalHeight=function(){return this.getTotalHeight(this.pinnedTopRows)},e.prototype.getPinnedTopRowCount=function(){return this.pinnedTopRows?this.pinnedTopRows.length:0},e.prototype.getPinnedBottomRowCount=function(){return this.pinnedBottomRows?this.pinnedBottomRows.length:0},e.prototype.getPinnedTopRow=function(e){return this.pinnedTopRows[e]},e.prototype.getPinnedBottomRow=function(e){return this.pinnedBottomRows[e]},e.prototype.forEachPinnedTopRow=function(e){h.Utils.missingOrEmpty(this.pinnedTopRows)||this.pinnedTopRows.forEach(e)},e.prototype.forEachPinnedBottomRow=function(e){h.Utils.missingOrEmpty(this.pinnedBottomRows)||this.pinnedBottomRows.forEach(e)},e.prototype.getPinnedBottomTotalHeight=function(){return this.getTotalHeight(this.pinnedBottomRows)},e.prototype.getTotalHeight=function(e){if(e&&0!==e.length){var t=e[e.length-1];return t.rowTop+t.rowHeight}return 0},i([p.Autowired("gridOptionsWrapper"),n("design:type",r.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([p.Autowired("eventService"),n("design:type",l.EventService)],e.prototype,"eventService",void 0),i([p.Autowired("context"),n("design:type",a.Context)],e.prototype,"context",void 0),i([p.Autowired("columnApi"),n("design:type",f.ColumnApi)],e.prototype,"columnApi",void 0),i([p.Autowired("gridApi"),n("design:type",g.GridApi)],e.prototype,"gridApi",void 0),i([c.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),e=i([a.Bean("pinnedRowModel")],e)}();t.PinnedRowModel=y},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(7),s=o(24),a=o(46),l=function(){function e(){this.p1Tasks=new a.LinkedList,this.p2Tasks=new a.LinkedList,this.ticking=!1}return e.prototype.addP1Task=function(e){this.p1Tasks.add(e),this.schedule()},e.prototype.addP2Task=function(e){this.p2Tasks.add(e),this.schedule()},e.prototype.executeFrame=function(e){for(var t=(new Date).getTime(),o=(new Date).getTime()-t,i=!0,n=e<=0;n||o<e;){if(i)i=this.gridPanel.executeFrame();else if(this.p1Tasks.isEmpty()){if(this.p2Tasks.isEmpty())break;var r=this.p2Tasks.remove();r()}else{var r=this.p1Tasks.remove();r()}o=(new Date).getTime()-t}!i&&this.p1Tasks.isEmpty()&&this.p1Tasks.isEmpty()?this.ticking=!1:this.requestFrame()},e.prototype.flushAllFrames=function(){this.executeFrame(-1)},e.prototype.schedule=function(){this.ticking||(this.ticking=!0,this.requestFrame())},e.prototype.requestFrame=function(){var e=this.executeFrame.bind(this,60);window.requestAnimationFrame?window.requestAnimationFrame(e):window.webkitRequestAnimationFrame?window.webkitRequestAnimationFrame(e):setTimeout(e,0)},i([r.Autowired("gridPanel"),n("design:type",s.GridPanel)],e.prototype,"gridPanel",void 0),e=i([r.Bean("animationFrameService")],e)}();t.AnimationFrameService=l},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){this.first=null,this.last=null}return e.prototype.add=function(e){var t={item:e,next:null};this.last?this.last.next=t:this.first=t,this.last=t},e.prototype.remove=function(){var e=this.first;return e&&(this.first=e.next,this.first||(this.last=null)),e.item},e.prototype.isEmpty=function(){return!this.first},e}();t.LinkedList=o;!function(){function e(){}}()},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),n=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=o(8),a=o(29),l=o(30),p=o(4),u=o(17),c=o(11),d=o(5),h=o(7),f=o(35),g=o(48),y=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return i(t,e),t.prototype.init=function(e){var t=s._.createIconNoSpan("groupLoading",this.gridOptionsWrapper,null);this.eLoadingIcon.appendChild(t);var o=this.gridOptionsWrapper.getLocaleTextFunc();this.eLoadingText.innerText=o("loadingOoo","Loading")},t.prototype.refresh=function(e){return!1},t.TEMPLATE='<div class="ag-stub-cell">\n            <span class="ag-loading-icon" ref="eLoadingIcon"></span>\n            <span class="ag-loading-text" ref="eLoadingText"></span>\n        </div>',n([h.Autowired("gridOptionsWrapper"),r("design:type",p.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([g.RefSelector("eLoadingIcon"),r("design:type",HTMLElement)],t.prototype,"eLoadingIcon",void 0),n([g.RefSelector("eLoadingText"),r("design:type",HTMLElement)],t.prototype,"eLoadingText",void 0),t}(f.Component);t.LoadingCellRenderer=y;var v=function(e){function t(t,o,i,n,r,s,a,l,p){var u=e.call(this)||this;return u.eAllRowContainers=[],u.active=!0,u.columnRefreshPending=!1,u.cellComps={},u.createSecondPassFuncs=[],u.removeFirstPassFuncs=[],u.removeSecondPassFuncs=[],u.initialised=!1,u.parentScope=t,u.beans=a,u.bodyContainerComp=o,u.pinnedLeftContainerComp=i,u.pinnedRightContainerComp=n,u.fullWidthContainerComp=r,u.rowNode=s,u.rowIsEven=u.rowNode.rowIndex%2==0,u.paginationPage=u.beans.paginationProxy.getCurrentPage(),u.useAnimationFrameForCreate=p,u.setAnimateFlags(l),u}return i(t,e),t.prototype.init=function(){var e=this;this.rowFocused=this.beans.focusedCellController.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned),this.scope=this.createChildScopeOrNull(this.rowNode.data),this.setupRowContainers(),this.addListeners(),this.slideRowIn&&this.createSecondPassFuncs.push(function(){e.onTopChanged()}),this.fadeRowIn&&this.createSecondPassFuncs.push(function(){e.eAllRowContainers.forEach(function(e){return s._.removeCssClass(e,"ag-opacity-zero")})}),this.executeProcessRowPostCreateFunc()},t.prototype.createTemplate=function(e,t){void 0===t&&(t=null);var o=[],i=this.rowNode.rowHeight,n=this.getInitialRowClasses(t).join(" "),r=this.rowNode.id,s=this.preProcessStylesFromGridOptions(),a=this.getRowBusinessKey(),l=this.getInitialRowTopStyle();return o.push("<div"),o.push(' role="row"'),o.push(' row-index="'+this.rowNode.getRowIndexString()+'"'),o.push(r?' row-id="'+r+'"':""),o.push(a?' row-business-key="'+a+'"':""),o.push(' comp-id="'+this.getCompId()+'"'),o.push(' class="'+n+'"'),o.push(' style="height: '+i+"px; "+l+" "+s+'">'),o.push(e),o.push("</div>"),o.join("")},t.prototype.getCellForCol=function(e){var t=this.cellComps[e.getColId()];return t?t.getHtmlElement():null},t.prototype.afterFlush=function(){this.initialised||(this.initialised=!0,this.executeProcessRowPostCreateFunc())},t.prototype.executeProcessRowPostCreateFunc=function(){var e=this.beans.gridOptionsWrapper.getProcessRowPostCreateFunc();if(e){e({eRow:this.eBodyRow,ePinnedLeftRow:this.ePinnedLeftRow,ePinnedRightRow:this.ePinnedRightRow,node:this.rowNode,api:this.beans.gridOptionsWrapper.getApi(),rowIndex:this.rowNode.rowIndex,addRenderedRowListener:this.addEventListener.bind(this),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()})}},t.prototype.getInitialRowTopStyle=function(){var e="";if(!this.beans.forPrint&&!this.beans.gridOptionsWrapper.isAutoHeight()){var t=this.slideRowIn?this.roundRowTopToBounds(this.rowNode.oldRowTop):this.rowNode.rowTop;e="top: "+this.applyPixelOffset(t)+"px; "}return e},t.prototype.getRowBusinessKey=function(){if("function"==typeof this.beans.gridOptionsWrapper.getBusinessKeyForNodeFunc()){return this.beans.gridOptionsWrapper.getBusinessKeyForNodeFunc()(this.rowNode)}},t.prototype.lazyCreateCells=function(e,t){if(this.active){var o=this.createCells(e);t.innerHTML=o.template,this.callAfterRowAttachedOnCells(o.cellComps,t)}},t.prototype.createRowContainer=function(e,t,o){var i,n=this;i=this.useAnimationFrameForCreate?{cellComps:[],template:""}:this.createCells(t);var r=this.createTemplate(i.template);e.appendRowTemplate(r,function(){var r=e.getRowElement(n.getCompId());n.afterRowAttached(e,r),o(r),n.useAnimationFrameForCreate?n.beans.taskQueue.addP1Task(n.lazyCreateCells.bind(n,t,r)):n.callAfterRowAttachedOnCells(i.cellComps,r)})},t.prototype.createChildScopeOrNull=function(e){if(this.beans.gridOptionsWrapper.isAngularCompileRows()){var t=this.parentScope.$new();return t.data=e,t.rowNode=this.rowNode,t.context=this.beans.gridOptionsWrapper.getContext(),t}return null},t.prototype.setupRowStub=function(){this.fullWidthRow=!0,this.fullWidthRowEmbedded=this.beans.gridOptionsWrapper.isEmbedFullWidthRows(),this.createFullWidthRows(t.LOADING_CELL_RENDERER)},t.prototype.setupRowContainers=function(){var e=this.beans.gridOptionsWrapper.getIsFullWidthCellFunc(),t=!!e&&e(this.rowNode),o=this.rowNode.group&&this.beans.gridOptionsWrapper.isGroupUseEntireRow();this.rowNode.stub?this.setupRowStub():t?this.setupFullWidthContainers():o?this.setupFullWidthGroupContainers():this.setupNormalRowContainers()},t.prototype.setupFullWidthContainers=function(){this.fullWidthRow=!0,this.fullWidthRowEmbedded=this.beans.gridOptionsWrapper.isEmbedFullWidthRows(),this.createFullWidthRows(t.FULL_WIDTH_CELL_RENDERER)},t.prototype.setupFullWidthGroupContainers=function(){this.fullWidthRow=!0,this.fullWidthRowEmbedded=this.beans.gridOptionsWrapper.isEmbedFullWidthRows(),this.createFullWidthRows(t.GROUP_ROW_RENDERER)},t.prototype.setupNormalRowContainers=function(){var e=this,t=this.beans.columnController.getAllDisplayedCenterVirtualColumnsForRow(this.rowNode);if(this.createRowContainer(this.bodyContainerComp,t,function(t){return e.eBodyRow=t}),!this.beans.forPrint){var o=this.beans.columnController.getDisplayedLeftColumnsForRow(this.rowNode),i=this.beans.columnController.getDisplayedRightColumnsForRow(this.rowNode);this.createRowContainer(this.pinnedRightContainerComp,i,function(t){return e.ePinnedRightRow=t}),this.createRowContainer(this.pinnedLeftContainerComp,o,function(t){return e.ePinnedLeftRow=t})}},t.prototype.createFullWidthRows=function(e){var t=this;this.fullWidthRowEmbedded?(this.createFullWidthRowContainer(this.bodyContainerComp,null,null,e,function(e,o){t.eFullWidthRowBody=e,t.fullWidthRowComponentBody=o}),this.createFullWidthRowContainer(this.pinnedLeftContainerComp,u.Column.PINNED_LEFT,"ag-cell-last-left-pinned",e,function(e,o){t.eFullWidthRowLeft=e,t.fullWidthRowComponentLeft=o}),this.createFullWidthRowContainer(this.pinnedRightContainerComp,u.Column.PINNED_RIGHT,"ag-cell-first-right-pinned",e,function(e,o){t.eFullWidthRowRight=e,t.fullWidthRowComponentRight=o})):this.createFullWidthRowContainer(this.fullWidthContainerComp,null,null,e,function(e,o){t.eFullWidthRow=e,t.fullWidthRowComponent=o,t.beans.forPrint||t.addMouseWheelListenerToFullWidthRow()})},t.prototype.addMouseWheelListenerToFullWidthRow=function(){var e=this.beans.gridPanel.genericMouseWheelListener.bind(this.beans.gridPanel);this.addDestroyableEventListener(this.eFullWidthRow,"mousewheel",e),this.addDestroyableEventListener(this.eFullWidthRow,"DOMMouseScroll",e)},t.prototype.setAnimateFlags=function(e){if(e){var t=s._.exists(this.rowNode.oldRowTop);this.slideRowIn=t,this.fadeRowIn=!t}else this.slideRowIn=!1,this.fadeRowIn=!1},t.prototype.isEditing=function(){return!1},t.prototype.stopRowEditing=function(e){this.stopEditing(e)},t.prototype.isFullWidth=function(){return this.fullWidthRow},t.prototype.addListeners=function(){this.addDestroyableEventListener(this.rowNode,l.RowNode.EVENT_HEIGHT_CHANGED,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,l.RowNode.EVENT_ROW_SELECTED,this.onRowSelected.bind(this)),this.addDestroyableEventListener(this.rowNode,l.RowNode.EVENT_ROW_INDEX_CHANGED,this.onRowIndexChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,l.RowNode.EVENT_TOP_CHANGED,this.onTopChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,l.RowNode.EVENT_EXPANDED_CHANGED,this.onExpandedChanged.bind(this)),this.addDestroyableEventListener(this.rowNode,l.RowNode.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this));var e=this.beans.eventService;this.addDestroyableEventListener(e,c.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addDestroyableEventListener(e,c.Events.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addDestroyableEventListener(e,c.Events.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addDestroyableEventListener(e,c.Events.EVENT_CELL_FOCUSED,this.onCellFocusChanged.bind(this)),this.addDestroyableEventListener(e,c.Events.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addDestroyableEventListener(e,c.Events.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this))},t.prototype.onGridColumnsChanged=function(){var e=Object.keys(this.cellComps);this.removeRenderedCells(e)},t.prototype.onRowNodeDataChanged=function(e){this.forEachCellComp(function(t){return t.refreshCell({suppressFlash:!e.update,newData:!e.update})}),this.onRowSelected(),this.postProcessStylesFromGridOptions(),this.postProcessClassesFromGridOptions()},t.prototype.onExpandedChanged=function(){if(this.rowNode.group&&!this.rowNode.footer){var e=this.rowNode.expanded;this.eAllRowContainers.forEach(function(t){return s._.addOrRemoveCssClass(t,"ag-row-group-expanded",e)}),this.eAllRowContainers.forEach(function(t){return s._.addOrRemoveCssClass(t,"ag-row-group-contracted",!e)})}},t.prototype.onDisplayedColumnsChanged=function(){this.fullWidthRow||this.refreshCells()},t.prototype.destroyFullWidthComponents=function(){this.fullWidthRowComponent&&(this.fullWidthRowComponent.destroy&&this.fullWidthRowComponent.destroy(),this.fullWidthRowComponent=null),this.fullWidthRowComponentBody&&(this.fullWidthRowComponentBody.destroy&&this.fullWidthRowComponentBody.destroy(),this.fullWidthRowComponent=null),this.fullWidthRowComponentLeft&&(this.fullWidthRowComponentLeft.destroy&&this.fullWidthRowComponentLeft.destroy(),this.fullWidthRowComponentLeft=null),this.fullWidthRowComponentRight&&(this.fullWidthRowComponentRight.destroy&&this.fullWidthRowComponentRight.destroy(),this.fullWidthRowComponent=null)},t.prototype.getContainerForCell=function(e){switch(e){case u.Column.PINNED_LEFT:return this.ePinnedLeftRow;case u.Column.PINNED_RIGHT:return this.ePinnedRightRow;default:return this.eBodyRow}},t.prototype.onVirtualColumnsChanged=function(){this.fullWidthRow||this.refreshCells()},t.prototype.onColumnResized=function(){this.fullWidthRow||this.refreshCells()},t.prototype.refreshCells=function(){if(this.beans.gridOptionsWrapper.isSuppressAnimationFrame())this.refreshCellsInAnimationFrame();else{if(this.columnRefreshPending)return;this.beans.taskQueue.addP1Task(this.refreshCellsInAnimationFrame.bind(this))}},t.prototype.refreshCellsInAnimationFrame=function(){if(this.active){this.columnRefreshPending=!1;var e=this.beans.columnController.getAllDisplayedCenterVirtualColumnsForRow(this.rowNode),t=this.beans.columnController.getDisplayedLeftColumnsForRow(this.rowNode),o=this.beans.columnController.getDisplayedRightColumnsForRow(this.rowNode);this.insertCellsIntoContainer(this.eBodyRow,e),this.insertCellsIntoContainer(this.ePinnedLeftRow,t),this.insertCellsIntoContainer(this.ePinnedRightRow,o);var i=Object.keys(this.cellComps);e.forEach(function(e){return s._.removeFromArray(i,e.getId())}),t.forEach(function(e){return s._.removeFromArray(i,e.getId())}),o.forEach(function(e){return s._.removeFromArray(i,e.getId())}),i=s._.filter(i,this.isCellEligibleToBeRemoved.bind(this)),this.removeRenderedCells(i)}},t.prototype.removeRenderedCells=function(e){var t=this;e.forEach(function(e){var o=t.cellComps[e];s._.missing(o)||(o.detach(),o.destroy(),t.cellComps[e]=null)})},t.prototype.isCellEligibleToBeRemoved=function(e){var t=this.beans.columnController.getAllDisplayedColumns(),o=!0,i=!1,n=this.cellComps[e];if(!n)return o;if(this.isCellInWrongRow(n))return o;var r=n.isEditing(),s=this.beans.focusedCellController.isCellFocused(n.getGridCell());if(r||s){var a=n.getColumn();return t.indexOf(a)>=0?i:o}return o},t.prototype.ensureCellInCorrectContainer=function(e){var t=e.getHtmlElement(),o=e.getColumn(),i=o.getPinned(),n=this.getContainerForCell(i),r=e.getParentRow();r!==n&&(r&&r.removeChild(t),n.appendChild(t),e.setParentRow(n))},t.prototype.isCellInWrongRow=function(e){var t=e.getColumn(),o=this.getContainerForCell(t.getPinned());return e.getParentRow()!==o},t.prototype.insertCellsIntoContainer=function(e,t){var o=this;if(e){var i=[],n=[];t.forEach(function(t){var r=t.getId(),s=o.cellComps[r];s?o.ensureCellInCorrectContainer(s):o.createNewCell(t,e,i,n)}),i.length>0&&(s._.appendHtml(e,i.join("")),this.callAfterRowAttachedOnCells(n,e))}},t.prototype.addDomData=function(e){var o=this.beans.gridOptionsWrapper;o.setDomData(e,t.DOM_DATA_KEY_RENDERED_ROW,this),this.addDestroyFunc(function(){o.setDomData(e,t.DOM_DATA_KEY_RENDERED_ROW,null)})},t.prototype.createNewCell=function(e,t,o,i){var n=new a.CellComp(this.scope,this.beans,e,this.rowNode,this),r=n.getCreateTemplate();o.push(r),i.push(n),this.cellComps[e.getId()]=n,n.setParentRow(t)},t.prototype.onMouseEvent=function(e,t){switch(e){case"dblclick":this.onRowDblClick(t);break;case"click":this.onRowClick(t)}},t.prototype.createRowEvent=function(e,t){return{type:e,node:this.rowNode,data:this.rowNode.data,rowIndex:this.rowNode.rowIndex,rowPinned:this.rowNode.rowPinned,context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),event:t}},t.prototype.createRowEventWithSource=function(e,t){var o=this.createRowEvent(e,t);return o.source=this,o},t.prototype.onRowDblClick=function(e){var t=this.createRowEventWithSource(c.Events.EVENT_ROW_DOUBLE_CLICKED,e);this.beans.eventService.dispatchEvent(t)},t.prototype.onRowClick=function(e){var t=this.createRowEventWithSource(c.Events.EVENT_ROW_CLICKED,e);this.beans.eventService.dispatchEvent(t);var o=e.ctrlKey||e.metaKey,i=e.shiftKey;this.rowNode.group||this.rowNode.rowPinned||this.beans.gridOptionsWrapper.isRowSelection()&&(this.beans.gridOptionsWrapper.isSuppressRowClickSelection()||(this.rowNode.isSelected()?o?this.beans.gridOptionsWrapper.isRowDeselection()&&this.rowNode.setSelectedParams({newValue:!1}):this.rowNode.setSelectedParams({newValue:!0,clearSelection:!0}):this.rowNode.setSelectedParams({newValue:!0,clearSelection:!o,rangeSelect:i})))},t.prototype.createFullWidthRowContainer=function(e,t,o,i,n){var r=this,a=this.createTemplate("",o);e.appendRowTemplate(a,function(){var o=e.getRowElement(r.getCompId()),a=r.createFullWidthParams(o,t),l=r.beans.componentResolver.createAgGridComponent(null,a,i),p=s._.ensureElement(l.getGui());o.appendChild(p),r.afterRowAttached(e,o),n(o,l),r.angular1Compile(o)})},t.prototype.angular1Compile=function(e){this.scope&&this.beans.$compile(e)(this.scope)},t.prototype.createFullWidthParams=function(e,t){return{fullWidth:!0,data:this.rowNode.data,node:this.rowNode,value:this.rowNode.key,$scope:this.scope,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),eGridCell:e,eParentOfValue:e,pinned:t,addRenderedRowListener:this.addEventListener.bind(this)}},t.prototype.getInitialRowClasses=function(e){var t=[];return s._.exists(e)&&t.push(e),t.push("ag-row"),t.push(this.rowFocused?"ag-row-focus":"ag-row-no-focus"),this.fadeRowIn&&t.push("ag-opacity-zero"),this.rowIsEven?t.push("ag-row-even"):t.push("ag-row-odd"),this.beans.gridOptionsWrapper.isAnimateRows()?t.push("ag-row-animation"):t.push("ag-row-no-animation"),this.rowNode.isSelected()&&t.push("ag-row-selected"),this.rowNode.group?(t.push("ag-row-group"),t.push("ag-row-level-"+this.rowNode.level),this.rowNode.footer&&t.push("ag-row-footer")):this.rowNode.parent?t.push("ag-row-level-"+(this.rowNode.parent.level+1)):t.push("ag-row-level-0"),this.rowNode.stub&&t.push("ag-row-stub"),this.fullWidthRow&&t.push("ag-full-width-row"),this.rowNode.group&&!this.rowNode.footer&&t.push(this.rowNode.expanded?"ag-row-group-expanded":"ag-row-group-contracted"),s._.pushAll(t,this.processClassesFromGridOptions()),t},t.prototype.stopEditing=function(e){if(void 0===e&&(e=!1),this.forEachCellComp(function(t){t.stopEditing(e)}),this.editingRow){if(!e){var t=this.createRowEvent(c.Events.EVENT_ROW_VALUE_CHANGED);this.beans.eventService.dispatchEvent(t)}this.setEditingRow(!1)}},t.prototype.setEditingRow=function(e){this.editingRow=e,this.eAllRowContainers.forEach(function(t){return s._.addOrRemoveCssClass(t,"ag-row-editing",e)});var t=e?this.createRowEvent(c.Events.EVENT_ROW_EDITING_STARTED):this.createRowEvent(c.Events.EVENT_ROW_EDITING_STOPPED);this.beans.eventService.dispatchEvent(t)},t.prototype.startRowEditing=function(e,t,o){void 0===e&&(e=null),void 0===t&&(t=null),void 0===o&&(o=null),this.editingRow||(this.forEachCellComp(function(i){var n=i===o;n?i.startEditingIfEnabled(e,t,n):i.startEditingIfEnabled(null,null,n)}),this.setEditingRow(!0))},t.prototype.forEachCellComp=function(e){s._.iterateObject(this.cellComps,function(t,o){o&&e(o)})},t.prototype.postProcessClassesFromGridOptions=function(){var e=this,t=this.processClassesFromGridOptions();t&&t.forEach(function(t){e.eAllRowContainers.forEach(function(e){return s._.addCssClass(e,t)})})},t.prototype.processClassesFromGridOptions=function(){var e=[],t=function(t){"string"==typeof t?e.push(t):Array.isArray(t)&&t.forEach(function(t){return e.push(t)})},o=this.beans.gridOptionsWrapper.getRowClass();if(o){if("function"==typeof o)return void console.warn("ag-Grid: rowClass should not be a function, please use getRowClass instead");t(o)}var i=this.beans.gridOptionsWrapper.getRowClassFunc();if(i){t(i({node:this.rowNode,data:this.rowNode.data,rowIndex:this.rowNode.rowIndex,context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi()}))}return e},t.prototype.preProcessStylesFromGridOptions=function(){var e=this.processStylesFromGridOptions();return s._.cssStyleObjectToMarkup(e)},t.prototype.postProcessStylesFromGridOptions=function(){var e=this.processStylesFromGridOptions();this.eAllRowContainers.forEach(function(t){return s._.addStylesToElement(t,e)})},t.prototype.processStylesFromGridOptions=function(){var e=this.beans.gridOptionsWrapper.getRowStyle();if(e&&"function"==typeof e)return void console.log("ag-Grid: rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead");var t,o=this.beans.gridOptionsWrapper.getRowStyleFunc();if(o){t=o({data:this.rowNode.data,node:this.rowNode,api:this.beans.gridOptionsWrapper.getApi(),context:this.beans.gridOptionsWrapper.getContext(),$scope:this.scope})}return s._.assign({},e,t)},t.prototype.createCells=function(e){var t=this,o=[],i=[];return e.forEach(function(e){var n=new a.CellComp(t.scope,t.beans,e,t.rowNode,t),r=n.getCreateTemplate();o.push(r),i.push(n),t.cellComps[e.getId()]=n}),{template:o.join(""),cellComps:i}},t.prototype.onRowSelected=function(){var e=this.rowNode.isSelected();this.eAllRowContainers.forEach(function(t){return s._.addOrRemoveCssClass(t,"ag-row-selected",e)})},t.prototype.callAfterRowAttachedOnCells=function(e,t){var o=this;e.forEach(function(e){e.setParentRow(t),e.afterAttached(),o.editingRow&&e.startEditingIfEnabled()})},t.prototype.afterRowAttached=function(e,t){var o=this;this.addDomData(t),this.removeSecondPassFuncs.push(function(){e.removeRowElement(t)}),this.removeFirstPassFuncs.push(function(){if(s._.exists(o.rowNode.rowTop)){var e=o.roundRowTopToBounds(o.rowNode.rowTop);o.setRowTop(e)}else s._.addCssClass(t,"ag-opacity-zero")}),this.eAllRowContainers.push(t),this.useAnimationFrameForCreate?this.beans.taskQueue.addP1Task(this.addHoverFunctionality.bind(this,t)):this.addHoverFunctionality(t)},t.prototype.addHoverFunctionality=function(e){var t=this;this.active&&(this.addDestroyableEventListener(e,"mouseenter",function(){return t.rowNode.onMouseEnter()}),this.addDestroyableEventListener(e,"mouseleave",function(){return t.rowNode.onMouseLeave()}),this.addDestroyableEventListener(this.rowNode,l.RowNode.EVENT_MOUSE_ENTER,function(){s._.addCssClass(e,"ag-row-hover")}),this.addDestroyableEventListener(this.rowNode,l.RowNode.EVENT_MOUSE_LEAVE,function(){s._.removeCssClass(e,"ag-row-hover")}))},t.prototype.roundRowTopToBounds=function(e){var t=this.beans.gridPanel.getVerticalPixelRange(),o=t.top-100,i=t.bottom+100;return e<o?o:e>i?i:e},t.prototype.onRowHeightChanged=function(){if(s._.exists(this.rowNode.rowHeight)){var e=this.rowNode.rowHeight+"px";this.eAllRowContainers.forEach(function(t){return t.style.height=e})}},t.prototype.addEventListener=function(e,o){"renderedRowRemoved"===e&&(e=t.EVENT_ROW_REMOVED,console.warn("ag-Grid: Since version 11, event renderedRowRemoved is now called "+t.EVENT_ROW_REMOVED)),this.renderedRowEventService||(this.renderedRowEventService=new d.EventService),this.renderedRowEventService.addEventListener(e,o)},t.prototype.removeEventListener=function(e,o){"renderedRowRemoved"===e&&(e=t.EVENT_ROW_REMOVED,console.warn("ag-Grid: Since version 11, event renderedRowRemoved is now called "+t.EVENT_ROW_REMOVED)),this.renderedRowEventService.removeEventListener(e,o)},t.prototype.destroyScope=function(){this.scope&&(this.scope.$destroy(),this.scope=null)},t.prototype.destroy=function(t){if(void 0===t&&(t=!1),e.prototype.destroy.call(this),this.destroyScope(),this.active=!1,this.destroyFullWidthComponents(),t)this.removeFirstPassFuncs.forEach(function(e){return e()}),this.removeSecondPassFuncs.push(this.destroyContainingCells.bind(this));else{this.destroyContainingCells();this.getAndClearDelayedDestroyFunctions().forEach(function(e){return e()})}var o=this.createRowEvent(c.Events.EVENT_VIRTUAL_ROW_REMOVED);this.renderedRowEventService&&this.renderedRowEventService.dispatchEvent(o),this.beans.eventService.dispatchEvent(o)},t.prototype.destroyContainingCells=function(){this.forEachCellComp(function(e){return e.destroy()}),this.destroyFullWidthComponents()},t.prototype.getAndClearDelayedDestroyFunctions=function(){var e=this.removeSecondPassFuncs;return this.removeSecondPassFuncs=[],e},t.prototype.onCellFocusChanged=function(){var e=this.beans.focusedCellController.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);e!==this.rowFocused&&(this.eAllRowContainers.forEach(function(t){return s._.addOrRemoveCssClass(t,"ag-row-focus",e)}),this.eAllRowContainers.forEach(function(t){return s._.addOrRemoveCssClass(t,"ag-row-no-focus",!e)}),this.rowFocused=e),!e&&this.editingRow&&this.stopEditing(!1)},t.prototype.onPaginationChanged=function(){var e=this.beans.paginationProxy.getCurrentPage();this.paginationPage!==e&&(this.paginationPage=e,this.onTopChanged())},t.prototype.onTopChanged=function(){this.beans.forPrint||this.beans.gridOptionsWrapper.isAutoHeight()||this.setRowTop(this.rowNode.rowTop)},t.prototype.applyPixelOffset=function(e){return this.rowNode.isRowPinned()?e:e-this.beans.paginationProxy.getPixelOffset()},t.prototype.setRowTop=function(e){if(s._.exists(e)){var t=this.applyPixelOffset(e),o=t+"px";this.eAllRowContainers.forEach(function(e){return e.style.top=o})}},t.prototype.getAndClearNextVMTurnFunctions=function(){var e=this.createSecondPassFuncs;return this.createSecondPassFuncs=[],e},t.prototype.getRowNode=function(){return this.rowNode},t.prototype.getRenderedCellForColumn=function(e){return this.cellComps[e.getColId()]},t.prototype.onRowIndexChanged=function(){this.onCellFocusChanged(),this.updateRowIndexes()},t.prototype.updateRowIndexes=function(){var e=this.rowNode.getRowIndexString(),t=this.rowNode.rowIndex%2==0,o=this.rowIsEven!==t;o&&(this.rowIsEven=t),this.eAllRowContainers.forEach(function(i){i.setAttribute("index",e),o&&(s._.addOrRemoveCssClass(i,"ag-row-even",t),s._.addOrRemoveCssClass(i,"ag-row-odd",!t))})},t.prototype.ensureDomOrder=function(){var e=this.getBodyRowElement();e&&this.bodyContainerComp.ensureDomOrder(e);var t=this.getPinnedLeftRowElement();t&&this.pinnedLeftContainerComp.ensureDomOrder(t);var o=this.getPinnedRightRowElement();o&&this.pinnedRightContainerComp.ensureDomOrder(o);var i=this.getFullWidthRowElement();i&&this.fullWidthContainerComp.ensureDomOrder(i)},t.prototype.getPinnedLeftRowElement=function(){return this.ePinnedLeftRow?this.ePinnedLeftRow:this.eFullWidthRowLeft},t.prototype.getPinnedRightRowElement=function(){return this.ePinnedRightRow?this.ePinnedRightRow:this.eFullWidthRowRight},t.prototype.getBodyRowElement=function(){return this.eBodyRow?this.eBodyRow:this.eFullWidthRowBody},t.prototype.getFullWidthRowElement=function(){return this.eFullWidthRow},t.EVENT_ROW_REMOVED="rowRemoved",t.DOM_DATA_KEY_RENDERED_ROW="renderedRow",t.FULL_WIDTH_CELL_RENDERER="fullWidthCellRenderer",t.GROUP_ROW_RENDERER="groupRowRenderer",t.LOADING_CELL_RENDERER="loadingCellRenderer",t}(f.Component);t.RowComp=v},function(e,t){"use strict";function o(e){return n.bind(this,e)}function i(e){return n.bind(this,"[ref="+e+"]")}function n(e,t,o,i){if(null===e)return void console.error("ag-Grid: QuerySelector selector should not be null");if("number"==typeof i)return void console.error("ag-Grid: QuerySelector should be on an attribute");var n=a(t,t.constructor.name);n.querySelectors||(n.querySelectors=[]),n.querySelectors.push({attributeName:o,querySelector:e})}function r(e){return s.bind(this,e)}function s(e,t,o,i){if(null===e)return void console.error("ag-Grid: EventListener eventName should not be null");var n=a(t,t.constructor.name);n.listenerMethods||(n.listenerMethods=[]),n.listenerMethods.push({methodName:o,eventName:e})}function a(e,t){return e.__agComponentMetaData||(e.__agComponentMetaData={}),e.__agComponentMetaData[t]||(e.__agComponentMetaData[t]={}),e.__agComponentMetaData[t]}Object.defineProperty(t,"__esModule",{value:!0}),t.QuerySelector=o,t.RefSelector=i,t.Listener=r},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(7),s=o(7),a=function(){function e(){this.templateCache={},this.waitingCallbacks={}}return e.prototype.getTemplate=function(e,t){var o=this.templateCache[e];if(o)return o;var i=this.waitingCallbacks[e],n=this;if(!i){i=[],this.waitingCallbacks[e]=i;var r=new XMLHttpRequest;r.onload=function(){n.handleHttpResult(this,e)},r.open("GET",e),r.send()}return t&&i.push(t),null},e.prototype.handleHttpResult=function(e,t){if(200!==e.status||null===e.response)return void console.warn("Unable to get template error "+e.status+" - "+t);this.templateCache[t]=e.response||e.responseText;for(var o=this.waitingCallbacks[t],i=0;i<o.length;i++){(0,o[i])()}if(this.$scope){var n=this;setTimeout(function(){n.$scope.$apply()},0)}},i([s.Autowired("$scope"),n("design:type",Object)],e.prototype,"$scope",void 0),e=i([r.Bean("templateService")],e)}();t.TemplateService=a},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(o,i){t(o,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(4),a=o(15),l=o(23),p=o(51),u=o(5),c=o(24),d=o(6),h=o(9),f=o(52),g=o(11),y=o(8),v=o(25),m=o(7),C=o(38),E=o(35),w=o(86),R=o(12),_=function(){function e(e){this.destroyFunctions=[],this.logger=e.create("GridCore")}return e.prototype.init=function(){var e,t,o=this,i=this.createSouthPanel();this.toolPanel&&!this.gridOptionsWrapper.isForPrint()&&(this.gridOptionsWrapper.isEnableRtl()?t=this.toolPanel.getHtmlElement():e=this.toolPanel.getHtmlElement());var n=this.createNorthPanel();this.eRootPanel=new v.BorderLayout({center:this.gridPanel.getLayout(),east:e,west:t,north:n,south:i,dontFill:this.gridOptionsWrapper.isForPrint(),fillHorizontalOnly:this.gridOptionsWrapper.isAutoHeight(),name:"eRootPanel"}),this.gridOptionsWrapper.isForPrint()?(y.Utils.addCssClass(this.eRootPanel.getGui(),"ag-layout-for-print"),y.Utils.addCssClass(this.eRootPanel.getGui(),"ag-no-scrolls")):this.gridOptionsWrapper.isAutoHeight()?y.Utils.addCssClass(this.eRootPanel.getGui(),"ag-layout-auto-height"):(y.Utils.addCssClass(this.eRootPanel.getGui(),"ag-layout-normal"),y.Utils.addCssClass(this.eRootPanel.getGui(),"ag-scrolls")),this.showToolPanel(this.gridOptionsWrapper.isShowToolPanel()),this.eGridDiv.appendChild(this.eRootPanel.getGui()),this.$scope&&this.$scope.$watch(this.quickFilterOnScope,function(e){return o.filterManager.setQuickFilter(e)}),this.gridOptionsWrapper.isForPrint()||this.addWindowResizeListener(),this.addRtlSupport(),this.doLayout(),this.finished=!1,this.periodicallyDoLayout(),this.eventService.addEventListener(g.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onRowGroupChanged.bind(this)),this.eventService.addEventListener(g.Events.EVENT_COLUMN_EVERYTHING_CHANGED,this.onRowGroupChanged.bind(this)),this.onRowGroupChanged(),this.logger.log("ready")},e.prototype.addRtlSupport=function(){this.gridOptionsWrapper.isEnableRtl()?y.Utils.addCssClass(this.eRootPanel.getGui(),"ag-rtl"):y.Utils.addCssClass(this.eRootPanel.getGui(),"ag-ltr")},e.prototype.createNorthPanel=function(){var e=this;if(!this.gridOptionsWrapper.isEnterprise())return null;var t=document.createElement("div"),o=this.onDropPanelVisible.bind(this);return this.rowGroupComp=this.rowGroupCompFactory.create(),this.pivotComp=this.pivotCompFactory.create(),t.appendChild(this.rowGroupComp.getHtmlElement()),t.appendChild(this.pivotComp.getHtmlElement()),this.rowGroupComp.addEventListener(E.Component.EVENT_VISIBLE_CHANGED,o),this.pivotComp.addEventListener(E.Component.EVENT_VISIBLE_CHANGED,o),this.destroyFunctions.push(function(){e.rowGroupComp.removeEventListener(E.Component.EVENT_VISIBLE_CHANGED,o),e.pivotComp.removeEventListener(E.Component.EVENT_VISIBLE_CHANGED,o)}),this.onDropPanelVisible(),t},e.prototype.onDropPanelVisible=function(){var e=this.rowGroupComp.isVisible()&&this.pivotComp.isVisible();this.rowGroupComp.addOrRemoveCssClass("ag-width-half",e),this.pivotComp.addOrRemoveCssClass("ag-width-half",e)},e.prototype.getRootGui=function(){return this.eRootPanel.getGui()},e.prototype.createSouthPanel=function(){!this.statusBar&&this.gridOptionsWrapper.isEnableStatusBar()&&console.warn("ag-Grid: status bar is only available in ag-Grid-Enterprise");var e=this.statusBar&&this.gridOptionsWrapper.isEnableStatusBar(),t=this.gridOptionsWrapper.isPagination(),o=t&&!this.gridOptionsWrapper.isForPrint()&&!this.gridOptionsWrapper.isSuppressPaginationPanel();if(!e&&!o)return null;var i=document.createElement("div");if(e&&i.appendChild(this.statusBar.getHtmlElement()),o){var n=new w.PaginationComp;this.context.wireBean(n),i.appendChild(n.getHtmlElement()),this.destroyFunctions.push(n.destroy.bind(n))}return i},e.prototype.onRowGroupChanged=function(){if(this.rowGroupComp){var e=this.gridOptionsWrapper.getRowGroupPanelShow();if(e===h.Constants.ALWAYS)this.rowGroupComp.setVisible(!0);else if(e===h.Constants.ONLY_WHEN_GROUPING){var t=!this.columnController.isRowGroupEmpty();this.rowGroupComp.setVisible(t)}else this.rowGroupComp.setVisible(!1);this.eRootPanel.doLayout()}},e.prototype.addWindowResizeListener=function(){var e=this.doLayout.bind(this);window.addEventListener("resize",e),this.destroyFunctions.push(function(){return window.removeEventListener("resize",e)})},e.prototype.periodicallyDoLayout=function(){var e=this;if(!this.finished){var t=this.gridOptionsWrapper.getLayoutInterval();t>0?this.frameworkFactory.setTimeout(function(){e.doLayout(),e.gridPanel.periodicallyCheck(),e.periodicallyDoLayout()},t):this.frameworkFactory.setTimeout(function(){e.periodicallyDoLayout()},5e3)}},e.prototype.showToolPanel=function(e){if(e&&!this.toolPanel)return console.warn("ag-Grid: toolPanel is only available in ag-Grid Enterprise"),void(this.toolPanelShowing=!1);this.toolPanelShowing=e,this.toolPanel&&(this.toolPanel.setVisible(e),this.eRootPanel.doLayout())},e.prototype.isToolPanelShowing=function(){return this.toolPanelShowing},e.prototype.destroy=function(){this.finished=!0,this.eGridDiv.removeChild(this.eRootPanel.getGui()),this.logger.log("Grid DOM removed"),this.destroyFunctions.forEach(function(e){return e()})},e.prototype.ensureNodeVisible=function(e){if(this.doingVirtualPaging)throw"Cannot use ensureNodeVisible when doing virtual paging, as we cannot check rows that are not in memory";for(var t=this.rowModel.getPageLastRow()+1,o="function"==typeof e,i=-1,n=0;n<t;n++){var r=this.rowModel.getRow(n);if(o){if(e(r)){i=n;break}}else if(e===r||e===r.data){i=n;break}}i>=0&&this.gridPanel.ensureIndexVisible(i)},e.prototype.doLayout=function(){var e=this.eRootPanel.doLayout();if(e&&this.eRootPanel.doLayout(),e){this.rowRenderer.redrawAfterScroll();var t={type:g.Events.EVENT_GRID_SIZE_CHANGED,clientWidth:this.eRootPanel.getGui().clientWidth,clientHeight:this.eRootPanel.getGui().clientHeight,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}},i([m.Autowired("gridOptions"),n("design:type",Object)],e.prototype,"gridOptions",void 0),i([m.Autowired("gridOptionsWrapper"),n("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([m.Autowired("rowModel"),n("design:type",Object)],e.prototype,"rowModel",void 0),i([m.Autowired("frameworkFactory"),n("design:type",Object)],e.prototype,"frameworkFactory",void 0),i([m.Autowired("columnController"),n("design:type",a.ColumnController)],e.prototype,"columnController",void 0),i([m.Autowired("rowRenderer"),n("design:type",l.RowRenderer)],e.prototype,"rowRenderer",void 0),i([m.Autowired("filterManager"),n("design:type",p.FilterManager)],e.prototype,"filterManager",void 0),i([m.Autowired("eventService"),n("design:type",u.EventService)],e.prototype,"eventService",void 0),i([m.Autowired("gridPanel"),n("design:type",c.GridPanel)],e.prototype,"gridPanel",void 0),i([m.Autowired("eGridDiv"),n("design:type",HTMLElement)],e.prototype,"eGridDiv",void 0),i([m.Autowired("$scope"),n("design:type",Object)],e.prototype,"$scope",void 0),i([m.Autowired("quickFilterOnScope"),n("design:type",String)],e.prototype,"quickFilterOnScope",void 0),i([m.Autowired("popupService"),n("design:type",f.PopupService)],e.prototype,"popupService",void 0),i([m.Autowired("focusedCellController"),n("design:type",C.FocusedCellController)],e.prototype,"focusedCellController",void 0),i([m.Autowired("context"),n("design:type",m.Context)],e.prototype,"context",void 0),i([m.Autowired("columnApi"),n("design:type",a.ColumnApi)],e.prototype,"columnApi",void 0),i([m.Autowired("gridApi"),n("design:type",R.GridApi)],e.prototype,"gridApi",void 0),i([m.Optional("rowGroupCompFactory"),n("design:type",Object)],e.prototype,"rowGroupCompFactory",void 0),i([m.Optional("pivotCompFactory"),n("design:type",Object)],e.prototype,"pivotCompFactory",void 0),i([m.Optional("toolPanel"),n("design:type",E.Component)],e.prototype,"toolPanel",void 0),i([m.Optional("statusBar"),n("design:type",E.Component)],e.prototype,"statusBar",void 0),i([m.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),i([m.PreDestroy,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"destroy",null),e=i([m.Bean("gridCore"),r(0,m.Qualifier("loggerFactory")),n("design:paramtypes",[d.LoggerFactory])],e)}();t.GridCore=_},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(8),s=o(4),a=o(52),l=o(31),p=o(15),u=o(53),c=o(55),d=o(7),h=o(5),f=o(11),g=o(56),y=o(12),v=function(){function e(){this.allFilters={},this.quickFilter=null,this.availableFilters={text:u.TextFilter,number:c.NumberFilter,date:g.DateFilter}}return t=e,e.prototype.init=function(){this.eventService.addEventListener(f.Events.EVENT_ROW_DATA_CHANGED,this.onNewRowsLoaded.bind(this)),this.eventService.addEventListener(f.Events.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.quickFilter=this.parseQuickFilter(this.gridOptionsWrapper.getQuickFilterText()),this.checkExternalFilter()},e.prototype.registerFilter=function(e,t){this.availableFilters[e]=t},e.prototype.setFilterModel=function(e){var t=this;if(e){var o=Object.keys(e);r.Utils.iterateObject(this.allFilters,function(i,n){r.Utils.removeFromArray(o,i);var s=e[i];t.setModelOnFilterWrapper(n.filter,s)}),r.Utils.iterateArray(o,function(o){var i=t.columnController.getPrimaryColumn(o);if(!i)return void console.warn("Warning ag-grid setFilterModel - no column found for colId "+o);var n=t.getOrCreateFilterWrapper(i);t.setModelOnFilterWrapper(n.filter,e[o])})}else r.Utils.iterateObject(this.allFilters,function(e,o){t.setModelOnFilterWrapper(o.filter,null)});this.onFilterChanged()},e.prototype.setModelOnFilterWrapper=function(e,t){if("function"!=typeof e.setModel)return void console.warn("Warning ag-grid - filter missing setModel method, which is needed for setFilterModel");e.setModel(t)},e.prototype.getFilterModel=function(){var e={};return r.Utils.iterateObject(this.allFilters,function(t,o){var i=o.filter;if("function"!=typeof i.getModel)return void console.warn("Warning ag-grid - filter API missing getModel method, which is needed for getFilterModel");var n=i.getModel();r.Utils.exists(n)&&(e[t]=n)}),e},e.prototype.isAdvancedFilterPresent=function(){return this.advancedFilterPresent},e.prototype.setAdvancedFilterPresent=function(){var e=!1;r.Utils.iterateObject(this.allFilters,function(t,o){o.filter.isFilterActive()&&(e=!0)}),this.advancedFilterPresent=e},e.prototype.updateFilterFlagInColumns=function(){r.Utils.iterateObject(this.allFilters,function(e,t){var o=t.filter.isFilterActive();t.column.setFilterActive(o)})},e.prototype.isAnyFilterPresent=function(){return this.isQuickFilterPresent()||this.advancedFilterPresent||this.externalFilterPresent},e.prototype.doesFilterPass=function(e,t){for(var o=e.data,i=Object.keys(this.allFilters),n=0,r=i.length;n<r;n++){var s=i[n],a=this.allFilters[s];if(void 0!==a&&(a.filter!==t&&a.filter.isFilterActive())){a.filter.doesFilterPass||console.error("Filter is missing method doesFilterPass");var l={node:e,data:o};if(!a.filter.doesFilterPass(l))return!1}}return!0},e.prototype.parseQuickFilter=function(e){return r.Utils.missing(e)||""===e?null:this.gridOptionsWrapper.isRowModelInfinite()?(console.warn("ag-grid: cannot do quick filtering when doing virtual paging"),null):e.toUpperCase()},e.prototype.setQuickFilter=function(e){var t=this.parseQuickFilter(e);this.quickFilter!==t&&(this.quickFilter=t,this.onFilterChanged())},e.prototype.checkExternalFilter=function(){this.externalFilterPresent=this.gridOptionsWrapper.isExternalFilterPresent()},e.prototype.onFilterChanged=function(){this.setAdvancedFilterPresent(),this.updateFilterFlagInColumns(),this.checkExternalFilter(),r.Utils.iterateObject(this.allFilters,function(e,t){t.filter.onAnyFilterChanged&&t.filter.onAnyFilterChanged()});var e={type:f.Events.EVENT_FILTER_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},e.prototype.isQuickFilterPresent=function(){return null!==this.quickFilter},e.prototype.doesRowPassOtherFilters=function(e,t){return this.doesRowPassFilter(t,e)},e.prototype.doesRowPassQuickFilterNoCache=function(e){var t=this,o=this.columnController.getAllPrimaryColumns(),i=!1;return o.forEach(function(o){if(!i){var n=t.getQuickFilterTextForColumn(o,e);r.Utils.exists(n)&&n.indexOf(t.quickFilter)>=0&&(i=!0)}}),i},e.prototype.doesRowPassQuickFilterCache=function(e){return e.quickFilterAggregateText||this.aggregateRowForQuickFilter(e),e.quickFilterAggregateText.indexOf(this.quickFilter)>=0},e.prototype.doesRowPassQuickFilter=function(e){return this.gridOptionsWrapper.isCacheQuickFilter()?this.doesRowPassQuickFilterCache(e):this.doesRowPassQuickFilterNoCache(e)},e.prototype.doesRowPassFilter=function(e,t){return!(this.isQuickFilterPresent()&&!this.doesRowPassQuickFilter(e))&&(!(this.externalFilterPresent&&!this.gridOptionsWrapper.doesExternalFilterPass(e))&&!(this.advancedFilterPresent&&!this.doesFilterPass(e,t)))},e.prototype.getQuickFilterTextForColumn=function(e,t){var o,i=this.valueService.getValue(e,t),n=e.getColDef();if(e.getColDef().getQuickFilterText){var r={value:i,node:t,data:t.data,column:e,colDef:n};o=e.getColDef().getQuickFilterText(r)}else o=i;return o&&""!==o?o.toString().toUpperCase():null},e.prototype.aggregateRowForQuickFilter=function(e){var o=this,i=[];this.columnController.getAllPrimaryColumns().forEach(function(t){var n=o.getQuickFilterTextForColumn(t,e);r.Utils.exists(n)&&i.push(n)}),e.quickFilterAggregateText=i.join(t.QUICK_FILTER_SEPARATOR)},e.prototype.onNewRowsLoaded=function(){r.Utils.iterateObject(this.allFilters,function(e,t){t.filter.onNewRowsLoaded&&t.filter.onNewRowsLoaded()}),this.updateFilterFlagInColumns(),this.setAdvancedFilterPresent()},e.prototype.createValueGetter=function(e){var t=this;return function(o){return t.valueService.getValue(e,o)}},e.prototype.getFilterComponent=function(e){return this.getOrCreateFilterWrapper(e).filter},e.prototype.getOrCreateFilterWrapper=function(e){var t=this.cachedFilter(e);return t||(t=this.createFilterWrapper(e),this.allFilters[e.getColId()]=t),t},e.prototype.cachedFilter=function(e){return this.allFilters[e.getColId()]},e.prototype.createFilterInstance=function(e){var t,o=e.getFilter(),i="function"==typeof o,n=r.Utils.missing(o)||"string"==typeof o;if(i)t=o,this.assertMethodHasNoParameters(t);else{if(!n)return console.error("ag-Grid: colDef.filter should be function or a string"),null;var s=o;t=this.getFilterFromCache(s)}var a=new t;return this.checkFilterHasAllMandatoryMethods(a,e),this.context.wireBean(a),a},e.prototype.checkFilterHasAllMandatoryMethods=function(e,t){["getGui","isFilterActive","doesFilterPass","getModel","setModel"].forEach(function(o){if(!e[o])throw"Filter for column "+t.getColId()+" is missing method "+o})},e.prototype.createParams=function(e){var t=this,o=this.onFilterChanged.bind(this),i={type:f.Events.EVENT_FILTER_MODIFIED,api:this.gridApi,columnApi:this.columnApi},n=function(){return t.eventService.dispatchEvent(i)},s=this.doesRowPassOtherFilters.bind(this,e.filter),a=e.column.getColDef(),l={column:e.column,colDef:a,rowModel:this.rowModel,filterChangedCallback:o,filterModifiedCallback:n,valueGetter:this.createValueGetter(e.column),doesRowPassOtherFilter:s,context:this.gridOptionsWrapper.getContext(),$scope:e.scope};return a.filterParams&&r.Utils.assign(l,a.filterParams),l},e.prototype.createFilterWrapper=function(e){var t={column:e,filter:null,scope:null,gui:null};return t.filter=this.createFilterInstance(e),this.initialiseFilterAndPutIntoGui(t),t},e.prototype.initialiseFilterAndPutIntoGui=function(e){this.gridOptionsWrapper.isAngularCompileFilters()&&(e.scope=this.$scope.$new(),e.scope.context=this.gridOptionsWrapper.getContext());var t=this.createParams(e);e.filter.init(t);var o=document.createElement("div");o.className="ag-filter";var i=e.filter.getGui();"string"==typeof i&&(i=r.Utils.loadTemplate(i)),o.appendChild(i),e.scope?e.gui=this.$compile(o)(e.scope)[0]:e.gui=o},e.prototype.getFilterFromCache=function(e){var t=this.enterprise?"set":"text",o=this.availableFilters[t];return r.Utils.missing(e)?o:(this.enterprise||"set"!==e||(console.warn("ag-Grid: Set filter is only available in Enterprise ag-Grid"),e="text"),this.availableFilters[e]?this.availableFilters[e]:(console.error("ag-Grid: Could not find filter type "+e),this.availableFilters[o]))},e.prototype.onNewColumnsLoaded=function(){this.destroy()},e.prototype.destroyFilter=function(e){var t=this.allFilters[e.getColId()];t&&(this.disposeFilterWrapper(t),this.onFilterChanged())},e.prototype.disposeFilterWrapper=function(e){e.filter.setModel(null),e.filter.destroy&&e.filter.destroy(),e.column.setFilterActive(!1),delete this.allFilters[e.column.getColId()]},e.prototype.destroy=function(){var e=this;r.Utils.iterateObject(this.allFilters,function(t,o){e.disposeFilterWrapper(o)})},e.prototype.assertMethodHasNoParameters=function(e){r.Utils.getFunctionParameters(e).length>0&&(console.warn("ag-grid: It looks like your filter is of the old type and expecting parameters in the constructor."),console.warn("ag-grid: From ag-grid 1.14, the constructor should take no parameters and init() used instead."))},e.QUICK_FILTER_SEPARATOR="\n",i([d.Autowired("$compile"),n("design:type",Object)],e.prototype,"$compile",void 0),i([d.Autowired("$scope"),n("design:type",Object)],e.prototype,"$scope",void 0),i([d.Autowired("gridOptionsWrapper"),n("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([d.Autowired("gridCore"),n("design:type",Object)],e.prototype,"gridCore",void 0),i([d.Autowired("popupService"),n("design:type",a.PopupService)],e.prototype,"popupService",void 0),i([d.Autowired("valueService"),n("design:type",l.ValueService)],e.prototype,"valueService",void 0),i([d.Autowired("columnController"),n("design:type",p.ColumnController)],e.prototype,"columnController",void 0),i([d.Autowired("rowModel"),n("design:type",Object)],e.prototype,"rowModel",void 0),i([d.Autowired("eventService"),n("design:type",h.EventService)],e.prototype,"eventService",void 0),i([d.Autowired("enterprise"),n("design:type",Boolean)],e.prototype,"enterprise",void 0),i([d.Autowired("context"),n("design:type",d.Context)],e.prototype,"context",void 0),i([d.Autowired("columnApi"),n("design:type",p.ColumnApi)],e.prototype,"columnApi",void 0),i([d.Autowired("gridApi"),n("design:type",y.GridApi)],e.prototype,"gridApi",void 0),i([d.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),i([d.PreDestroy,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"destroy",null),e=t=i([d.Bean("filterManager")],e);var t}();t.FilterManager=v},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(8),s=o(9),a=o(7),l=o(50),p=o(4),u=function(){function e(){}return e.prototype.getPopupParent=function(){return this.gridCore.getRootGui()},e.prototype.positionPopupForMenu=function(e){function t(){return i.right-n.left-2}function o(){return i.left-n.left-a}var i=e.eventSource.getBoundingClientRect(),n=this.getPopupParent().getBoundingClientRect(),r=i.top-n.top;r=this.keepYWithinBounds(e,r);var s,a=e.ePopup.clientWidth>0?e.ePopup.clientWidth:200,l=n.right-n.left,p=l-a;this.gridOptionsWrapper.isEnableRtl()?(s=o(),s<0&&(s=t()),s>p&&(s=0)):(s=t(),s>p&&(s=o()),s<0&&(s=0)),e.ePopup.style.left=s+"px",e.ePopup.style.top=r+"px"},e.prototype.positionPopupUnderMouseEvent=function(e){var t=this.getPopupParent().getBoundingClientRect();this.positionPopup({ePopup:e.ePopup,x:e.mouseEvent.clientX-t.left,y:e.mouseEvent.clientY-t.top,keepWithinBounds:!0}),this.callPostProcessPopup(e.ePopup,null,e.mouseEvent,e.type,e.column,e.rowNode)},e.prototype.positionPopupUnderComponent=function(e){var t=e.eventSource.getBoundingClientRect(),o=this.getPopupParent().getBoundingClientRect();this.positionPopup({ePopup:e.ePopup,minWidth:e.minWidth,nudgeX:e.nudgeX,nudgeY:e.nudgeY,x:t.left-o.left,y:t.top-o.top+t.height,keepWithinBounds:e.keepWithinBounds}),this.callPostProcessPopup(e.ePopup,e.eventSource,null,e.type,e.column,e.rowNode)},e.prototype.callPostProcessPopup=function(e,t,o,i,n,r){var s=this.gridOptionsWrapper.getPostProcessPopupFunc();if(s){s({column:n,rowNode:r,ePopup:e,type:i,eventSource:t,mouseEvent:o})}},e.prototype.positionPopupOverComponent=function(e){var t=e.eventSource.getBoundingClientRect(),o=this.getPopupParent().getBoundingClientRect();this.positionPopup({ePopup:e.ePopup,minWidth:e.minWidth,nudgeX:e.nudgeX,nudgeY:e.nudgeY,x:t.left-o.left,y:t.top-o.top,keepWithinBounds:e.keepWithinBounds}),this.callPostProcessPopup(e.ePopup,e.eventSource,null,e.type,e.column,e.rowNode)},e.prototype.positionPopup=function(e){var t=e.x,o=e.y;e.nudgeX&&(t+=e.nudgeX),e.nudgeY&&(o+=e.nudgeY),e.keepWithinBounds&&(t=this.keepXWithinBounds(e,t),o=this.keepYWithinBounds(e,o)),e.ePopup.style.left=t+"px",e.ePopup.style.top=o+"px"},e.prototype.keepYWithinBounds=function(e,t){var o,i=this.getPopupParent().getBoundingClientRect();o=e.ePopup.clientHeight>0?e.ePopup.clientHeight:200;var n=i.bottom-i.top,r=n-o-5;return t>r?r:t<0?0:t},e.prototype.keepXWithinBounds=function(e,t){var o,i=this.getPopupParent().getBoundingClientRect();o=e.minWidth>0?e.minWidth:e.ePopup.clientWidth>0?e.ePopup.clientWidth:200;var n=i.right-i.left,r=n-o-5;return t>r?r:t<0?0:t},e.prototype.addAsModalPopup=function(e,t,o){function i(e){(e.which||e.keyCode)===s.Constants.KEY_ESCAPE&&n(null)}function n(t){t&&t===d||t&&t===h||c||(c=!0,u.getPopupParent().removeChild(e),p.removeEventListener("keydown",i),p.removeEventListener("click",n),p.removeEventListener("touchstart",n),p.removeEventListener("contextmenu",n),e.removeEventListener("click",a),e.removeEventListener("touchstart",l),o&&o())}function a(e){d=e}function l(e){h=e}var p=this.gridOptionsWrapper.getDocument();if(!p)return void console.warn("ag-grid: could not find the body of the document, document.body is empty");if(e.style.top="0px",e.style.left="0px",!r.Utils.isVisible(e)){this.getPopupParent().appendChild(e);var u=this,c=!1;setTimeout(function(){t&&p.addEventListener("keydown",i),p.addEventListener("click",n),p.addEventListener("touchstart",n),p.addEventListener("contextmenu",n),e.addEventListener("click",a),e.addEventListener("touchstart",l)},0);var d=null,h=null;return n}},i([a.Autowired("gridCore"),n("design:type",l.GridCore)],e.prototype,"gridCore",void 0),i([a.Autowired("gridOptionsWrapper"),n("design:type",p.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),e=i([a.Bean("popupService")],e)}();t.PopupService=u},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),n=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=o(8),a=o(54),l=o(48),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getDefaultType=function(){return a.BaseFilter.CONTAINS},t.prototype.customInit=function(){this.comparator=this.filterParams.textCustomComparator?this.filterParams.textCustomComparator:t.DEFAULT_COMPARATOR,this.formatter=this.filterParams.textFormatter?this.filterParams.textFormatter:1==this.filterParams.caseSensitive?t.DEFAULT_FORMATTER:t.DEFAULT_LOWERCASE_FORMATTER,e.prototype.customInit.call(this)},t.prototype.modelFromFloatingFilter=function(e){return{type:this.filter,filter:e,filterType:"text"}},t.prototype.getApplicableFilterTypes=function(){return[a.BaseFilter.EQUALS,a.BaseFilter.NOT_EQUAL,a.BaseFilter.STARTS_WITH,a.BaseFilter.ENDS_WITH,a.BaseFilter.CONTAINS,a.BaseFilter.NOT_CONTAINS]},t.prototype.bodyTemplate=function(){return'<div class="ag-filter-body">\n            <input class="ag-filter-filter" id="filterText" type="text" placeholder="'+this.translate.bind(this)("filterOoo","Filter...")+'"/>\n        </div>'},t.prototype.initialiseFilterBodyUi=function(){e.prototype.initialiseFilterBodyUi.call(this);var t=null!=this.filterParams.debounceMs?this.filterParams.debounceMs:500,o=s.Utils.debounce(this.onFilterTextFieldChanged.bind(this),t);this.addDestroyableEventListener(this.eFilterTextField,"input",o)},t.prototype.refreshFilterBodyUi=function(){},t.prototype.afterGuiAttached=function(){this.eFilterTextField.focus()},t.prototype.filterValues=function(){return this.filterText},t.prototype.doesFilterPass=function(e){if(!this.filterText)return!0;var t=this.filterParams.valueGetter(e.node);if(!t)return this.filter===a.BaseFilter.NOT_EQUAL||this.filter===a.BaseFilter.NOT_CONTAINS;var o=this.formatter(t);return this.comparator(this.filter,o,this.filterText)},t.prototype.onFilterTextFieldChanged=function(){var e=s.Utils.makeNull(this.eFilterTextField.value);if(e&&""===e.trim()&&(e=null),this.filterText!==e){var t=e&&1!=this.filterParams.caseSensitive?e.toLowerCase():e,o=this.filterText&&1!=this.filterParams.caseSensitive?this.filterText.toLowerCase():this.filterText;this.filterText=this.formatter(e),o!==t&&this.onFilterChanged()}},t.prototype.setFilter=function(e){e=s.Utils.makeNull(e),e?(this.filterText=this.formatter(e),this.eFilterTextField.value=e):(this.filterText=null,this.eFilterTextField.value=null)},t.prototype.getFilter=function(){return this.filterText},t.prototype.resetState=function(){this.setFilter(null),this.setFilterType(a.BaseFilter.CONTAINS)},t.prototype.serialize=function(){return{type:this.filter?this.filter:this.defaultFilter,filter:this.filterText,filterType:"text"}},t.prototype.parse=function(e){this.setFilterType(e.type),this.setFilter(e.filter)},t.prototype.setType=function(e){this.setFilterType(e)},t.DEFAULT_FORMATTER=function(e){return e},t.DEFAULT_LOWERCASE_FORMATTER=function(e){return null==e?null:e.toString().toLowerCase()},t.DEFAULT_COMPARATOR=function(e,o,i){switch(e){case t.CONTAINS:return o.indexOf(i)>=0;case t.NOT_CONTAINS:return-1===o.indexOf(i);case t.EQUALS:return o===i;case t.NOT_EQUAL:return o!=i;case t.STARTS_WITH:return 0===o.indexOf(i);case t.ENDS_WITH:var n=o.lastIndexOf(i);return n>=0&&n===o.length-i.length;default:return console.warn("invalid filter type "+e),!1}},n([l.QuerySelector("#filterText"),r("design:type",HTMLInputElement)],t.prototype,"eFilterTextField",void 0),t}(a.ComparableBaseFilter);t.TextFilter=p},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),n=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=o(35),a=o(48),l=o(7),p=o(4),u=o(8),c={equals:"Equals",notEqual:"Not equal",lessThan:"Less than",greaterThan:"Greater than",inRange:"In range",lessThanOrEqual:"Less than or equals",greaterThanOrEqual:"Greater than or equals",filterOoo:"Filter...",contains:"Contains",notContains:"Not contains",startsWith:"Starts with",endsWith:"Ends with",searchOoo:"Search...",selectAll:"Select All",applyFilter:"Apply Filter",clearFilter:"Clear Filter"},d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.init=function(e){this.filterParams=e,this.defaultFilter=this.filterParams.defaultOption,this.filterParams.filterOptions&&this.filterParams.filterOptions.lastIndexOf(t.EQUALS)<0&&(this.defaultFilter=this.filterParams.filterOptions[0]),this.customInit(),this.filter=this.defaultFilter,this.clearActive=!0===e.clearButton,this.applyActive=!0===e.applyButton||!0===e.apply,this.newRowsActionKeep="keep"===e.newRowsAction,this.setTemplate(this.generateTemplate()),u._.setVisible(this.eApplyButton,this.applyActive),this.applyActive&&this.addDestroyableEventListener(this.eApplyButton,"click",this.filterParams.filterChangedCallback),u._.setVisible(this.eClearButton,this.clearActive),this.clearActive&&this.addDestroyableEventListener(this.eClearButton,"click",this.onClearButton.bind(this));var o=this.applyActive||this.clearActive;u._.setVisible(this.eButtonsPanel,o),this.instantiate(this.context),this.initialiseFilterBodyUi(),this.refreshFilterBodyUi()},t.prototype.onClearButton=function(){this.setModel(null),this.onFilterChanged()},t.prototype.floatingFilter=function(e){if(""!==e){var t=this.modelFromFloatingFilter(e);this.setModel(t)}else this.resetState();this.onFilterChanged()},t.prototype.onNewRowsLoaded=function(){this.newRowsActionKeep||this.resetState()},t.prototype.getModel=function(){return this.isFilterActive()?this.serialize():null},t.prototype.getNullableModel=function(){return this.serialize()},t.prototype.setModel=function(e){e?this.parse(e):this.resetState(),this.refreshFilterBodyUi()},t.prototype.doOnFilterChanged=function(e){void 0===e&&(e=!1),this.filterParams.filterModifiedCallback();var t=this.applyActive&&e,o=!this.applyActive,i=o||t;return i&&this.filterParams.filterChangedCallback(),this.refreshFilterBodyUi(),i},t.prototype.onFilterChanged=function(){this.doOnFilterChanged()},t.prototype.onFloatingFilterChanged=function(e){var t=e;return this.setModel(t?t.model:null),this.doOnFilterChanged(!!t&&t.apply)},t.prototype.generateFilterHeader=function(){return""},t.prototype.generateTemplate=function(){var e=this.translate.bind(this),t=this.bodyTemplate();return"<div>\n                    "+this.generateFilterHeader()+"\n                    "+t+'\n                    <div class="ag-filter-apply-panel" id="applyPanel">\n                        <button type="button" id="clearButton">'+e("clearFilter")+'</button>\n                        <button type="button" id="applyButton">'+e("applyFilter")+"</button>\n                    </div>\n                </div>"},t.prototype.translate=function(e){return this.gridOptionsWrapper.getLocaleTextFunc()(e,c[e])},t.EQUALS="equals",t.NOT_EQUAL="notEqual",t.LESS_THAN="lessThan",t.LESS_THAN_OR_EQUAL="lessThanOrEqual",t.GREATER_THAN="greaterThan",t.GREATER_THAN_OR_EQUAL="greaterThanOrEqual",t.IN_RANGE="inRange",t.CONTAINS="contains",t.NOT_CONTAINS="notContains",t.STARTS_WITH="startsWith",t.ENDS_WITH="endsWith",n([a.QuerySelector("#applyPanel"),r("design:type",HTMLElement)],t.prototype,"eButtonsPanel",void 0),n([a.QuerySelector("#applyButton"),r("design:type",HTMLElement)],t.prototype,"eApplyButton",void 0),n([a.QuerySelector("#clearButton"),r("design:type",HTMLElement)],t.prototype,"eClearButton",void 0),n([l.Autowired("context"),r("design:type",l.Context)],t.prototype,"context",void 0),n([l.Autowired("gridOptionsWrapper"),r("design:type",p.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),t}(s.Component);t.BaseFilter=d;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.init=function(t){e.prototype.init.call(this,t),this.addDestroyableEventListener(this.eTypeSelector,"change",this.onFilterTypeChanged.bind(this))},t.prototype.customInit=function(){this.defaultFilter||(this.defaultFilter=this.getDefaultType())},t.prototype.generateFilterHeader=function(){var e=this,t=this.getApplicableFilterTypes(),o=this.filterParams.filterOptions,i=o||t,n=i.map(function(t){return'<option value="'+t+'">'+e.translate(t)+"</option>"}),r=1==n.length?"disabled":"";return n.length<=0?"":'<div>\n                <select class="ag-filter-select" id="filterType" '+r+">\n                    "+n.join("")+"\n                </select>\n            </div>"},t.prototype.initialiseFilterBodyUi=function(){this.setFilterType(this.filter)},t.prototype.onFilterTypeChanged=function(){this.filter=this.eTypeSelector.value,this.refreshFilterBodyUi(),this.onFilterChanged()},t.prototype.isFilterActive=function(){var e=this.filterValues();if(this.filter===d.IN_RANGE){var t=e;return null!=t[0]&&null!=t[1]}return null!=e},t.prototype.setFilterType=function(e){this.filter=e,this.eTypeSelector.value=e},n([a.QuerySelector("#filterType"),r("design:type",HTMLSelectElement)],t.prototype,"eTypeSelector",void 0),t}(d);t.ComparableBaseFilter=h;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.nullComparator=function(e){var t=this;return function(o,i){if(null==i){var n=t.translateNull(e);if(t.filter===d.EQUALS)return n?0:1;if(t.filter===d.GREATER_THAN)return n?1:-1;if(t.filter===d.GREATER_THAN_OR_EQUAL)return n?1:-1;if(t.filter===d.LESS_THAN_OR_EQUAL)return n?-1:1;if(t.filter===d.LESS_THAN)return n?-1:1;if(t.filter===d.NOT_EQUAL)return n?1:0}return t.comparator()(o,i)}},t.prototype.getDefaultType=function(){return d.EQUALS},t.prototype.translateNull=function(e){var o=e.indexOf("greater")>-1?"greaterThan":e.indexOf("lessThan")>-1?"lessThan":"equals";return this.filterParams.nullComparator&&this.filterParams.nullComparator[o]?this.filterParams.nullComparator[o]:t.DEFAULT_NULL_COMPARATOR[o]},t.prototype.doesFilterPass=function(e){var t=this.filterParams.valueGetter(e.node),o=this.nullComparator(this.filter),i=this.filterValues(),n=Array.isArray(i)?i[0]:i;if(null==n)return!0;var r=o(n,t);if(this.filter===d.EQUALS)return 0===r;if(this.filter===d.GREATER_THAN)return r>0;if(this.filter===d.GREATER_THAN_OR_EQUAL)return r>=0;if(this.filter===d.LESS_THAN_OR_EQUAL)return r<=0;if(this.filter===d.LESS_THAN)return r<0;if(this.filter===d.NOT_EQUAL)return 0!=r;var s=o(i[1],t);if(this.filter===d.IN_RANGE)return this.filterParams.inRangeInclusive?r>=0&&s<=0:r>0&&s<0;throw new Error("Unexpected type of date filter!: "+this.filter)},t.DEFAULT_NULL_COMPARATOR={equals:!1,lessThan:!1,greaterThan:!1},t}(h);t.ScalarBaseFilter=f},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),n=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=o(8),a=o(48),l=o(54),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.modelFromFloatingFilter=function(e){return{type:this.filter,filter:Number(e),filterTo:this.filterNumberTo,filterType:"number"}},t.prototype.getApplicableFilterTypes=function(){return[l.BaseFilter.EQUALS,l.BaseFilter.NOT_EQUAL,l.BaseFilter.LESS_THAN,l.BaseFilter.LESS_THAN_OR_EQUAL,l.BaseFilter.GREATER_THAN,l.BaseFilter.GREATER_THAN_OR_EQUAL,l.BaseFilter.IN_RANGE]},t.prototype.bodyTemplate=function(){var e=this.translate.bind(this);return'<div class="ag-filter-body">\n            <div>\n                <input class="ag-filter-filter" id="filterText" type="text" placeholder="'+e("filterOoo")+'"/>\n            </div>\n             <div class="ag-filter-number-to" id="filterNumberToPanel">\n                <input class="ag-filter-filter" id="filterToText" type="text" placeholder="'+e("filterOoo")+'"/>\n            </div>\n        </div>'},t.prototype.initialiseFilterBodyUi=function(){this.filterNumber=null,this.eFilterTextField=this.getHtmlElement().querySelector("#filterText");var e=null!=this.filterParams.debounceMs?this.filterParams.debounceMs:500,t=s.Utils.debounce(this.onTextFieldsChanged.bind(this),e);this.addDestroyableEventListener(this.eFilterTextField,"input",t),this.addDestroyableEventListener(this.eFilterToTextField,"input",t)},t.prototype.afterGuiAttached=function(){this.eFilterTextField.focus()},t.prototype.comparator=function(){return function(e,t){return e===t?0:e<t?1:e>t?-1:void 0}},t.prototype.onTextFieldsChanged=function(){var e=this.stringToFloat(this.eFilterTextField.value),t=this.stringToFloat(this.eFilterToTextField.value);this.filterNumber===e&&this.filterNumberTo===t||(this.filterNumber=e,this.filterNumberTo=t,this.onFilterChanged())},t.prototype.filterValues=function(){return this.filter!==l.BaseFilter.IN_RANGE?this.asNumber(this.filterNumber):[this.asNumber(this.filterNumber),this.asNumber(this.filterNumberTo)]},t.prototype.asNumber=function(e){return s.Utils.isNumeric(e)?e:null},t.prototype.stringToFloat=function(e){var t=s.Utils.makeNull(e);t&&""===t.trim()&&(t=null);return null!==t&&void 0!==t?parseFloat(t):null},t.prototype.setFilter=function(e){e=s.Utils.makeNull(e),null!==e&&"number"!=typeof e&&(e=parseFloat(e)),this.filterNumber=e,this.eFilterTextField.value=e},t.prototype.setFilterTo=function(e){e=s.Utils.makeNull(e),null!==e&&"number"!=typeof e&&(e=parseFloat(e)),this.filterNumberTo=e,this.eFilterToTextField.value=e},t.prototype.getFilter=function(){return this.filterNumber},t.prototype.serialize=function(){return{type:this.filter?this.filter:this.defaultFilter,filter:this.filterNumber,filterTo:this.filterNumberTo,filterType:"number"}},t.prototype.parse=function(e){this.setFilterType(e.type),this.setFilter(e.filter),this.setFilterTo(e.filterTo)},t.prototype.refreshFilterBodyUi=function(){var e=this.filter===t.IN_RANGE;s.Utils.setVisible(this.eNumberToPanel,e)},t.prototype.resetState=function(){this.setFilterType(l.BaseFilter.EQUALS),this.setFilter(null),this.setFilterTo(null)},t.prototype.setType=function(e){this.setFilterType(e)},t.LESS_THAN="lessThan",n([a.QuerySelector("#filterNumberToPanel"),r("design:type",HTMLElement)],t.prototype,"eNumberToPanel",void 0),n([a.QuerySelector("#filterToText"),r("design:type",HTMLInputElement)],t.prototype,"eFilterToTextField",void 0),t}(l.ScalarBaseFilter);t.NumberFilter=p},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),n=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=o(35),a=o(48),l=o(8),p=o(54),u=o(7),c=o(57),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.modelFromFloatingFilter=function(e){return{dateFrom:e,dateTo:this.getDateTo(),type:this.filter,filterType:"date"}},t.prototype.getApplicableFilterTypes=function(){return[p.BaseFilter.EQUALS,p.BaseFilter.GREATER_THAN,p.BaseFilter.LESS_THAN,p.BaseFilter.NOT_EQUAL,p.BaseFilter.IN_RANGE]},t.prototype.bodyTemplate=function(){return'<div class="ag-filter-body">\n                    <div class="ag-filter-date-from" id="filterDateFromPanel">\n                    </div>\n                    <div class="ag-filter-date-to" id="filterDateToPanel">\n                    </div>\n                </div>'},t.prototype.initialiseFilterBodyUi=function(){var e={onDateChanged:this.onDateChanged.bind(this)};this.dateToComponent=this.componentRecipes.newDateComponent(e),this.dateFromComponent=this.componentRecipes.newDateComponent(e);var t=l._.ensureElement(this.dateFromComponent.getGui());this.eDateFromPanel.appendChild(t);var o=l._.ensureElement(this.dateToComponent.getGui());this.eDateToPanel.appendChild(o),this.dateFromComponent.afterGuiAttached&&this.dateFromComponent.afterGuiAttached({eComponent:t}),this.dateToComponent.afterGuiAttached&&this.dateToComponent.afterGuiAttached({eComponent:o})},t.prototype.onDateChanged=function(){this.dateFrom=t.removeTimezone(this.dateFromComponent.getDate()),this.dateTo=t.removeTimezone(this.dateToComponent.getDate()),this.onFilterChanged()},t.prototype.refreshFilterBodyUi=function(){var e=this.filter===p.BaseFilter.IN_RANGE;l.Utils.setVisible(this.eDateToPanel,e)},t.prototype.comparator=function(){return this.filterParams.comparator?this.filterParams.comparator:this.defaultComparator.bind(this)},t.prototype.defaultComparator=function(e,t){var o=t;return o<e?-1:o>e?1:null!=t?0:-1},t.prototype.serialize=function(){return{dateTo:l.Utils.serializeDateToYyyyMmDd(this.dateToComponent.getDate(),"-"),dateFrom:l.Utils.serializeDateToYyyyMmDd(this.dateFromComponent.getDate(),"-"),type:this.filter?this.filter:this.defaultFilter,filterType:"date"}},t.prototype.filterValues=function(){return this.filter!==p.BaseFilter.IN_RANGE?this.dateFromComponent.getDate():[this.dateFromComponent.getDate(),this.dateToComponent.getDate()]},t.prototype.getDateFrom=function(){return l.Utils.serializeDateToYyyyMmDd(this.dateFromComponent.getDate(),"-")},t.prototype.getDateTo=function(){return l.Utils.serializeDateToYyyyMmDd(this.dateToComponent.getDate(),"-")},t.prototype.getFilterType=function(){return this.filter},t.prototype.setDateFrom=function(e){this.dateFrom=l.Utils.parseYyyyMmDdToDate(e,"-"),this.dateFromComponent.setDate(this.dateFrom)},t.prototype.setDateTo=function(e){this.dateTo=l.Utils.parseYyyyMmDdToDate(e,"-"),this.dateToComponent.setDate(this.dateTo)},t.prototype.resetState=function(){this.setDateFrom(null),this.setDateTo(null),this.setFilterType("equals")},t.prototype.parse=function(e){this.setDateFrom(e.dateFrom),this.setDateTo(e.dateTo),this.setFilterType(e.type)},t.prototype.setType=function(e){this.setFilterType(e)},t.removeTimezone=function(e){return e?new Date(e.getFullYear(),e.getMonth(),e.getDate()):null},n([u.Autowired("componentRecipes"),r("design:type",c.ComponentRecipes)],t.prototype,"componentRecipes",void 0),n([a.QuerySelector("#filterDateFromPanel"),r("design:type",HTMLElement)],t.prototype,"eDateFromPanel",void 0),n([a.QuerySelector("#filterDateToPanel"),r("design:type",HTMLElement)],t.prototype,"eDateToPanel",void 0),t}(p.ScalarBaseFilter);t.DateFilter=d;var h=function(e){function t(){return e.call(this,'<input class="ag-filter-filter" type="text" placeholder="yyyy-mm-dd">')||this}return i(t,e),t.prototype.init=function(e){this.eDateInput=this.getGui(),l.Utils.isBrowserChrome()&&(this.eDateInput.type="date"),this.listener=e.onDateChanged,this.addGuiEventListener("input",this.listener)},t.prototype.getDate=function(){return l.Utils.parseYyyyMmDdToDate(this.eDateInput.value,"-")},t.prototype.setDate=function(e){this.eDateInput.value=l.Utils.serializeDateToYyyyMmDd(e,"-")},t}(s.Component);t.DefaultDateComponent=h},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r,s=o(7),a=o(4),l=o(51),p=o(58);!function(e){e[e.AG_GRID=0]="AG_GRID",e[e.FRAMEWORK=1]="FRAMEWORK"}(r||(r={}));var u=function(){function e(){}return e.prototype.newDateComponent=function(e){return this.componentResolver.createAgGridComponent(this.gridOptions,e,"dateComponent")},e.prototype.newHeaderComponent=function(e){return this.componentResolver.createAgGridComponent(e.column.getColDef(),e,"headerComponent")},e.prototype.newHeaderGroupComponent=function(e){return this.componentResolver.createAgGridComponent(e.columnGroup.getColGroupDef(),e,"headerGroupComponent")},e.prototype.newFloatingFilterComponent=function(e,t,o){var i=e+"FloatingFilterComponent";return this.componentResolver.createAgGridComponent(t,o,"floatingFilterComponent",i,!1)},e.prototype.newFloatingFilterWrapperComponent=function(e,t){var o=this,i=e.getColDef();if(i.suppressFilter)return this.newEmptyFloatingFilterWrapperComponent(e);var n;n="string"==typeof i.filter?i.filter:i.filter?"custom":this.gridOptionsWrapper.isEnterprise()?"set":"text";var r=this.newFloatingFilterComponent(n,i,t),s={column:e,floatingFilterComp:r,suppressFilterButton:this.componentResolver.mergeParams(i,"floatingFilterComponent",t).suppressFilterButton};if(!r){var a=this.getFilterComponentPrototype(i);if(a&&!a.component.prototype.getModelAsString)return this.newEmptyFloatingFilterWrapperComponent(e);var l=t.currentParentModel;t.currentParentModel=function(){return o.filterManager.getFilterComponent(e).getModelAsString(l())},s.floatingFilterComp=this.newFloatingFilterComponent("readModelAsString",i,t)}return this.componentResolver.createAgGridComponent(i,s,"floatingFilterWrapperComponent")},e.prototype.newFullWidthGroupRowInnerCellRenderer=function(e){return this.componentResolver.createAgGridComponent(this.gridOptions,e,"groupRowInnerRenderer","groupRowInnerRenderer",!1)},e.prototype.newCellRenderer=function(e,t){return this.componentResolver.createAgGridComponent(e,t,"cellRenderer","cellRenderer",!1)},e.prototype.newInnerCellRenderer=function(e,t){return this.componentResolver.createAgGridComponent(e,t,"innerRenderer")},e.prototype.newFullRowGroupRenderer=function(e){return this.componentResolver.createAgGridComponent(this.gridOptionsWrapper,e,"fullWidthCellRenderer")},e.prototype.getFilterComponentPrototype=function(e){return this.componentResolver.getComponentToUse(e,"filterComponent")},e.prototype.newEmptyFloatingFilterWrapperComponent=function(e){var t={column:e,floatingFilterComp:null};return this.componentResolver.createAgGridComponent(e.getColDef(),t,"floatingFilterWrapperComponent","emptyFloatingFilterWrapperComponent")},i([s.Autowired("componentResolver"),n("design:type",p.ComponentResolver)],e.prototype,"componentResolver",void 0),i([s.Autowired("gridOptions"),n("design:type",Object)],e.prototype,"gridOptions",void 0),i([s.Autowired("gridOptionsWrapper"),n("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([s.Autowired("filterManager"),n("design:type",l.FilterManager)],e.prototype,"filterManager",void 0),e=i([s.Bean("componentRecipes")],e)}();t.ComponentRecipes=u},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r,s=o(7),a=o(4),l=o(8),p=o(59),u=o(84),c=o(85);!function(e){e[e.AG_GRID=0]="AG_GRID",e[e.FRAMEWORK=1]="FRAMEWORK"}(r=t.ComponentType||(t.ComponentType={}));var d;!function(e){e[e.DEFAULT=0]="DEFAULT",e[e.REGISTERED_BY_NAME=1]="REGISTERED_BY_NAME",e[e.HARDCODED=2]="HARDCODED"}(d=t.ComponentSource||(t.ComponentSource={}));var h=function(){function e(){}return e.prototype.getComponentToUse=function(e,t,o){var i=null==o?t:o,n=null,s=null,a=null,l=null;if(null!=e){var p=e[t];null!=p&&("string"==typeof p?n=p:this.agComponentUtils.doesImplementIComponent(p)?s=p:a=p),l=e[t+"Framework"]}if(s&&l||n&&l||a&&l)throw Error("You are trying to specify: "+t+" twice as a component.");if(l&&!this.frameworkComponentWrapper)throw Error("You are specifying a framework component but you are not using a framework version of ag-grid for : "+t);if(l)return{type:r.FRAMEWORK,component:l,source:d.HARDCODED};if(s)return{type:r.AG_GRID,component:s,source:d.HARDCODED};if(a)return this.agComponentUtils.adaptFunction(t,a,r.AG_GRID,d.HARDCODED);var u;return u=n||i,this.namedComponentResolver.resolve(t,u)},e.prototype.mergeParams=function(e,t,o){var i=e?e[t+"Params"]:null,n={};return l._.mergeDeep(n,o),l._.mergeDeep(n,i),n.api||(n.api=this.gridOptions.api),n},e.prototype.createAgGridComponent=function(e,t,o,i,n){void 0===n&&(n=!0);var r=null==e?this.gridOptions:e,s=null==i?o:i,a=this.newAgGridComponent(r,o,s,n);if(!a)return null;var l=this.mergeParams(r,o,t);return this.context.wireBean(a),a.init(l),a},e.prototype.newAgGridComponent=function(e,t,o,i){void 0===i&&(i=!0);var n=this.getComponentToUse(e,t,o);if(!n||!n.component)return i&&console.error("Error creating component "+t+"=>"+o),null;if(n.type===r.AG_GRID)return new n.component;var s=n.component,a=this.componentMetadataProvider.retrieve(t);return this.frameworkComponentWrapper.wrap(s,a.mandatoryMethodList,a.optionalMethodList)},i([s.Autowired("gridOptions"),n("design:type",Object)],e.prototype,"gridOptions",void 0),i([s.Autowired("gridOptionsWrapper"),n("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([s.Autowired("context"),n("design:type",s.Context)],e.prototype,"context",void 0),i([s.Autowired("namedComponentResolver"),n("design:type",p.NamedComponentResolver)],e.prototype,"namedComponentResolver",void 0),i([s.Autowired("agComponentUtils"),n("design:type",u.AgComponentUtils)],e.prototype,"agComponentUtils",void 0),i([s.Autowired("componentMetadataProvider"),n("design:type",c.ComponentMetadataProvider)],e.prototype,"componentMetadataProvider",void 0),i([s.Optional("frameworkComponentWrapper"),n("design:type",Object)],e.prototype,"frameworkComponentWrapper",void 0),e=i([s.Bean("componentResolver")],e)}();t.ComponentResolver=h},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(58),s=o(7),a=o(60),l=o(84),p=function(){function e(){}return e.prototype.resolve=function(e,t){var o=null!=t?t:e,i=this.componentProvider.retrieve(o);return null==i?null:i.type==r.ComponentType.FRAMEWORK?{component:i.component,type:r.ComponentType.FRAMEWORK,source:r.ComponentSource.REGISTERED_BY_NAME}:this.agComponentUtils.doesImplementIComponent(i.component)?{component:i.component,type:r.ComponentType.AG_GRID,source:i.source==a.RegisteredComponentSource.REGISTERED?r.ComponentSource.REGISTERED_BY_NAME:r.ComponentSource.DEFAULT}:this.agComponentUtils.adaptFunction(e,i.component,i.type,i.source==a.RegisteredComponentSource.REGISTERED?r.ComponentSource.REGISTERED_BY_NAME:r.ComponentSource.DEFAULT)},i([s.Autowired("componentProvider"),n("design:type",a.ComponentProvider)],e.prototype,"componentProvider",void 0),i([s.Autowired("agComponentUtils"),n("design:type",l.AgComponentUtils)],e.prototype,"agComponentUtils",void 0),e=i([s.Bean("namedComponentResolver")],e)}();t.NamedComponentResolver=p},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r,s=o(7),a=o(56),l=o(61),p=o(64),u=o(65),c=o(66),d=o(58),h=o(80),f=o(79),g=o(78),y=o(47);!function(e){e[e.DEFAULT=0]="DEFAULT",e[e.REGISTERED=1]="REGISTERED"}(r=t.RegisteredComponentSource||(t.RegisteredComponentSource={}));var v=function(){function e(){this.jsComponents={},this.frameworkComponents={}}return e.prototype.postConstruct=function(){this.agGridDefaults={filterComponent:null,customFloatingFilterComponent:null,dateComponent:a.DefaultDateComponent,headerComponent:l.HeaderComp,headerGroupComponent:p.HeaderGroupComp,setFloatingFilterComponent:u.SetFloatingFilterComp,textFloatingFilterComponent:u.TextFloatingFilterComp,numberFloatingFilterComponent:u.NumberFloatingFilterComp,dateFloatingFilterComponent:u.DateFloatingFilterComp,readModelAsStringFloatingFilterComponent:u.ReadModelAsStringFloatingFilterComp,floatingFilterWrapperComponent:c.FloatingFilterWrapperComp,emptyFloatingFilterWrapperComponent:c.EmptyFloatingFilterWrapperComp,cellRenderer:null,fullWidthCellRenderer:null,innerRenderer:null,groupRowInnerRenderer:null,animateShowChange:f.AnimateShowChangeCellRenderer,animateSlide:g.AnimateSlideCellRenderer,group:h.GroupCellRenderer,groupRowRenderer:h.GroupCellRenderer,loadingCellRenderer:y.LoadingCellRenderer,pinnedRowCellRenderer:null}},e.prototype.registerComponent=function(e,t){if(console.warn("ag-grid: registering components is a lab feature, is not intended to be used or supported yet."),this.frameworkComponents[e])return void console.error("Trying to register a component that you have already registered for frameworks: "+e);this.jsComponents[e]=t},e.prototype.registerFwComponent=function(e,t){if(console.warn("ag-grid: registering components is a lab feature, is not intended to be used or supported yet."),this.jsComponents[e])return void console.error("Trying to register a component that you have already registered for plain javascript: "+e);this.frameworkComponents[e]=t},e.prototype.retrieve=function(e){return this.frameworkComponents[e]?{type:d.ComponentType.FRAMEWORK,component:this.frameworkComponents[e],source:r.REGISTERED}:this.jsComponents[e]?{type:d.ComponentType.AG_GRID,component:this.jsComponents[e],source:r.REGISTERED}:this.agGridDefaults[e]?{type:d.ComponentType.AG_GRID,component:this.agGridDefaults[e],source:r.DEFAULT}:(Object.keys(this.agGridDefaults).indexOf(e)<0&&console.warn("ag-grid: Looking for component ["+e+"] but it wasn't found."),null)},i([s.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"postConstruct",null),e=i([s.Bean("componentProvider")],e)}();t.ComponentProvider=v},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),n=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=o(35),a=o(17),l=o(8),p=o(7),u=o(4),c=o(62),d=o(63),h=o(5),f=o(48),g=o(11),y=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return i(t,e),t.prototype.init=function(e){this.params=e,this.setupTap(),this.setupIcons(e.column),this.setupMenu(),this.setupSort(),this.setupFilterIcon(),this.setupText(e.displayName)},t.prototype.setupText=function(e){this.eText.innerHTML=e},t.prototype.setupIcons=function(e){this.addInIcon("sortAscending",this.eSortAsc,e),this.addInIcon("sortDescending",this.eSortDesc,e),this.addInIcon("sortUnSort",this.eSortNone,e),this.addInIcon("menu",this.eMenu,e),this.addInIcon("filter",this.eFilter,e)},t.prototype.addInIcon=function(e,t,o){var i=l.Utils.createIconNoSpan(e,this.gridOptionsWrapper,o);t.appendChild(i)},t.prototype.setupTap=function(){var e=this;if(!this.gridOptionsWrapper.isSuppressTouch()){var t=new d.TouchListener(this.getHtmlElement());if(this.params.enableMenu){var o=function(t){e.gridOptionsWrapper.getApi().showColumnMenuAfterMouseClick(e.params.column,t.touchStart)};this.addDestroyableEventListener(t,d.TouchListener.EVENT_LONG_TAP,o)}if(this.params.enableSorting){var i=function(){e.sortController.progressSort(e.params.column,!1)};this.addDestroyableEventListener(t,d.TouchListener.EVENT_TAP,i)}this.addDestroyFunc(function(){return t.destroy()})}},t.prototype.setupMenu=function(){var e=this;if(this.eMenu){if(!this.params.enableMenu)return void l.Utils.removeFromParent(this.eMenu);this.eMenu.addEventListener("click",function(){return e.showMenu(e.eMenu)}),this.gridOptionsWrapper.isSuppressMenuHide()||(this.eMenu.style.opacity="0",this.addGuiEventListener("mouseover",function(){e.eMenu.style.opacity="1"}),this.addGuiEventListener("mouseout",function(){e.eMenu.style.opacity="0"}));var t=this.eMenu.style;t.transition="opacity 0.2s, border 0.2s",t["-webkit-transition"]="opacity 0.2s, border 0.2s"}},t.prototype.showMenu=function(e){this.menuFactory.showMenuAfterButtonClick(this.params.column,e)},t.prototype.removeSortIcons=function(){l.Utils.removeFromParent(this.eSortAsc),l.Utils.removeFromParent(this.eSortDesc),l.Utils.removeFromParent(this.eSortNone),l.Utils.removeFromParent(this.eSortOrder)},t.prototype.setupSort=function(){var e=this;if(!this.params.enableSorting)return void this.removeSortIcons();this.eLabel&&this.addDestroyableEventListener(this.eLabel,"click",function(t){e.params.progressSort(t.shiftKey)}),this.addDestroyableEventListener(this.params.column,a.Column.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.onSortChanged(),this.addDestroyableEventListener(this.eventService,g.Events.EVENT_SORT_CHANGED,this.setMultiSortOrder.bind(this)),this.setMultiSortOrder()},t.prototype.onSortChanged=function(){if(l.Utils.addOrRemoveCssClass(this.getHtmlElement(),"ag-header-cell-sorted-asc",this.params.column.isSortAscending()),l.Utils.addOrRemoveCssClass(this.getHtmlElement(),"ag-header-cell-sorted-desc",this.params.column.isSortDescending()),l.Utils.addOrRemoveCssClass(this.getHtmlElement(),"ag-header-cell-sorted-none",this.params.column.isSortNone()),this.eSortAsc&&l.Utils.addOrRemoveCssClass(this.eSortAsc,"ag-hidden",!this.params.column.isSortAscending()),this.eSortDesc&&l.Utils.addOrRemoveCssClass(this.eSortDesc,"ag-hidden",!this.params.column.isSortDescending()),this.eSortNone){var e=!this.params.column.getColDef().unSortIcon&&!this.gridOptionsWrapper.isUnSortIcon();l.Utils.addOrRemoveCssClass(this.eSortNone,"ag-hidden",e||!this.params.column.isSortNone())}},t.prototype.setMultiSortOrder=function(){if(this.eSortOrder){var e=this.params.column,t=this.sortController.getColumnsWithSortingOrdered(),o=t.indexOf(e),i=t.length>1,n=e.isSorting()&&i;l.Utils.setVisible(this.eSortOrder,n),this.eSortOrder.innerHTML=o>=0?(o+1).toString():""}},t.prototype.setupFilterIcon=function(){this.eFilter&&(this.addDestroyableEventListener(this.params.column,a.Column.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.onFilterChanged())},t.prototype.onFilterChanged=function(){var e=this.params.column.isFilterActive();l.Utils.addOrRemoveCssClass(this.eFilter,"ag-hidden",!e)},t.TEMPLATE='<div class="ag-cell-label-container" role="presentation">  <span ref="eMenu" class="ag-header-icon ag-header-cell-menu-button" aria-hidden="true"></span>  <div ref="eLabel" class="ag-header-cell-label" role="presentation">    <span ref="eText" class="ag-header-cell-text" role="columnheader"></span>    <span ref="eFilter" class="ag-header-icon ag-filter-icon" aria-hidden="true"></span>    <span ref="eSortOrder" class="ag-header-icon ag-sort-order" aria-hidden="true"></span>    <span ref="eSortAsc" class="ag-header-icon ag-sort-ascending-icon" aria-hidden="true"></span>    <span ref="eSortDesc" class="ag-header-icon ag-sort-descending-icon" aria-hidden="true"></span>    <span ref="eSortNone" class="ag-header-icon ag-sort-none-icon" aria-hidden="true"></span>  </div></div>',n([p.Autowired("gridOptionsWrapper"),r("design:type",u.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([p.Autowired("sortController"),r("design:type",c.SortController)],t.prototype,"sortController",void 0),n([p.Autowired("menuFactory"),r("design:type",Object)],t.prototype,"menuFactory",void 0),n([p.Autowired("eventService"),r("design:type",h.EventService)],t.prototype,"eventService",void 0),n([f.RefSelector("eFilter"),r("design:type",HTMLElement)],t.prototype,"eFilter",void 0),n([f.RefSelector("eSortAsc"),r("design:type",HTMLElement)],t.prototype,"eSortAsc",void 0),n([f.RefSelector("eSortDesc"),r("design:type",HTMLElement)],t.prototype,"eSortDesc",void 0),n([f.RefSelector("eSortNone"),r("design:type",HTMLElement)],t.prototype,"eSortNone",void 0),n([f.RefSelector("eSortOrder"),r("design:type",HTMLElement)],t.prototype,"eSortOrder",void 0),n([f.RefSelector("eMenu"),r("design:type",HTMLElement)],t.prototype,"eMenu",void 0),n([f.RefSelector("eLabel"),r("design:type",HTMLElement)],t.prototype,"eLabel",void 0),n([f.RefSelector("eText"),r("design:type",HTMLElement)],t.prototype,"eText",void 0),t}(s.Component);t.HeaderComp=y},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(17),s=o(7),a=o(4),l=o(15),p=o(5),u=o(11),c=o(7),d=o(8),h=o(12),f=function(){function e(){}return t=e,e.prototype.progressSort=function(e,t){var o=this.getNextSortDirection(e);this.setSortForColumn(e,o,t)},e.prototype.setSortForColumn=function(e,t,o){if(t!==r.Column.SORT_ASC&&t!==r.Column.SORT_DESC&&(t=null),e.setSort(t),e.getSort()){var i=Number((new Date).valueOf());e.setSortedAt(i)}else e.setSortedAt(null);o&&!this.gridOptionsWrapper.isSuppressMultiSort()||this.clearSortBarThisColumn(e),this.dispatchSortChangedEvents()},e.prototype.onSortChanged=function(){this.dispatchSortChangedEvents()},e.prototype.dispatchSortChangedEvents=function(){var e={type:u.Events.EVENT_SORT_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},e.prototype.clearSortBarThisColumn=function(e){this.columnController.getPrimaryAndSecondaryAndAutoColumns().forEach(function(t){t!==e&&t.setSort(null)})},e.prototype.getNextSortDirection=function(e){var o;if(o=e.getColDef().sortingOrder?e.getColDef().sortingOrder:this.gridOptionsWrapper.getSortingOrder()?this.gridOptionsWrapper.getSortingOrder():t.DEFAULT_SORTING_ORDER,!Array.isArray(o)||o.length<=0)return void console.warn("ag-grid: sortingOrder must be an array with at least one element, currently it's "+o);var i,n=o.indexOf(e.getSort()),r=n<0,s=n==o.length-1;return i=r||s?o[0]:o[n+1],t.DEFAULT_SORTING_ORDER.indexOf(i)<0?(console.warn("ag-grid: invalid sort type "+i),null):i},e.prototype.getSortModel=function(){var e=this.getColumnsWithSortingOrdered();return d.Utils.map(e,function(e){return{colId:e.getColId(),sort:e.getSort()}})},e.prototype.setSortModel=function(e){var t=this;if(!this.gridOptionsWrapper.isEnableSorting())return void console.warn("ag-grid: You are setting the sort model on a grid that does not have sorting enabled");var o=e&&e.length>0;this.columnController.getPrimaryAndSecondaryAndAutoColumns().forEach(function(i){var n=null,r=-1;if(o&&!i.getColDef().suppressSorting)for(var s=0;s<e.length;s++){var a=e[s];"string"==typeof a.colId&&"string"==typeof i.getColId()&&t.compareColIds(a,i)&&(n=a.sort,r=s)}n?(i.setSort(n),i.setSortedAt(r)):(i.setSort(null),i.setSortedAt(null))}),this.dispatchSortChangedEvents()},e.prototype.compareColIds=function(e,t){return e.colId===t.getColId()},e.prototype.getColumnsWithSortingOrdered=function(){var e=this.columnController.getPrimaryAndSecondaryAndAutoColumns(),t=d.Utils.filter(e,function(e){return!!e.getSort()});return t.sort(function(e,t){return e.sortedAt-t.sortedAt}),t},e.prototype.getSortForRowController=function(){var e=this.getColumnsWithSortingOrdered();return d.Utils.map(e,function(e){return{inverter:e.getSort()===r.Column.SORT_ASC?1:-1,column:e}})},e.DEFAULT_SORTING_ORDER=[r.Column.SORT_ASC,r.Column.SORT_DESC,null],i([s.Autowired("gridOptionsWrapper"),n("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([s.Autowired("columnController"),n("design:type",l.ColumnController)],e.prototype,"columnController",void 0),i([s.Autowired("eventService"),n("design:type",p.EventService)],e.prototype,"eventService",void 0),i([s.Autowired("columnApi"),n("design:type",l.ColumnApi)],e.prototype,"columnApi",void 0),i([s.Autowired("gridApi"),n("design:type",h.GridApi)],e.prototype,"gridApi",void 0),e=t=i([c.Bean("sortController")],e);var t}();t.SortController=f},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(5),n=o(8),r=function(){function e(e){var t=this;this.destroyFuncs=[],this.touching=!1,this.eventService=new i.EventService,this.eElement=e;var o=this.onTouchStart.bind(this),n=this.onTouchMove.bind(this),r=this.onTouchEnd.bind(this);this.eElement.addEventListener("touchstart",o,{passive:!0}),this.eElement.addEventListener("touchmove",n,{passive:!0}),this.eElement.addEventListener("touchend",r,{passive:!0}),this.destroyFuncs.push(function(){t.eElement.addEventListener("touchstart",o,{passive:!0}),t.eElement.addEventListener("touchmove",n,{passive:!0}),t.eElement.addEventListener("touchend",r,{passive:!0})})}return e.prototype.getActiveTouch=function(e){for(var t=0;t<e.length;t++){if(e[t].identifier===this.touchStart.identifier)return e[t]}return null},e.prototype.addEventListener=function(e,t){this.eventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventService.removeEventListener(e,t)},e.prototype.onTouchStart=function(t){var o=this;if(!this.touching){this.touchStart=t.touches[0],this.touching=!0,this.moved=!1;var i=this.touchStart;setTimeout(function(){var t=o.touchStart===i;if(o.touching&&t&&!o.moved){o.moved=!0;var n={type:e.EVENT_LONG_TAP,touchStart:o.touchStart};o.eventService.dispatchEvent(n)}},500)}},e.prototype.onTouchMove=function(e){if(this.touching){var t=this.getActiveTouch(e.touches);if(t){!n.Utils.areEventsNear(t,this.touchStart,4)&&(this.moved=!0)}}},e.prototype.onTouchEnd=function(t){if(this.touching){if(!this.moved){var o={type:e.EVENT_TAP,touchStart:this.touchStart};this.eventService.dispatchEvent(o)}this.touching=!1}},e.prototype.destroy=function(){this.destroyFuncs.forEach(function(e){return e()})},e.EVENT_TAP="tap",e.EVENT_LONG_TAP="longTap",e}();t.TouchListener=r},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),n=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=o(35),a=o(8),l=o(15),p=o(4),u=o(7),c=o(63),d=o(48),h=o(19),f=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return i(t,e),t.prototype.init=function(e){this.params=e,this.setupLabel(),this.addGroupExpandIcon(),this.setupExpandIcons()},t.prototype.setupExpandIcons=function(){this.addInIcon("columnGroupOpened","agOpened"),this.addInIcon("columnGroupClosed","agClosed"),this.addTouchAndClickListeners(this.eCloseIcon),this.addTouchAndClickListeners(this.eOpenIcon),this.updateIconVisibility();var e=this.params.columnGroup.getOriginalColumnGroup();this.addDestroyableEventListener(e,h.OriginalColumnGroup.EVENT_EXPANDED_CHANGED,this.updateIconVisibility.bind(this)),this.addDestroyableEventListener(e,h.OriginalColumnGroup.EVENT_EXPANDABLE_CHANGED,this.updateIconVisibility.bind(this))},t.prototype.addTouchAndClickListeners=function(e){var t=this,o=function(){var e=!t.params.columnGroup.isExpanded();t.columnController.setColumnGroupOpened(t.params.columnGroup.getOriginalColumnGroup(),e)},i=new c.TouchListener(this.eCloseIcon);this.addDestroyableEventListener(i,c.TouchListener.EVENT_TAP,o),this.addDestroyFunc(function(){return i.destroy()}),this.addDestroyableEventListener(e,"click",o)},t.prototype.updateIconVisibility=function(){if(this.params.columnGroup.isExpandable()){var e=this.params.columnGroup.isExpanded();a.Utils.setVisible(this.eOpenIcon,!e),a.Utils.setVisible(this.eCloseIcon,e)}else a.Utils.setVisible(this.eOpenIcon,!1),a.Utils.setVisible(this.eCloseIcon,!1)},t.prototype.addInIcon=function(e,t){var o=a.Utils.createIconNoSpan(e,this.gridOptionsWrapper,null);this.getRefElement(t).appendChild(o)},t.prototype.addGroupExpandIcon=function(){if(!this.params.columnGroup.isExpandable())return a.Utils.setVisible(this.eOpenIcon,!1),void a.Utils.setVisible(this.eCloseIcon,!1)},t.prototype.setupLabel=function(){if(this.params.displayName&&""!==this.params.displayName){a.Utils.isBrowserSafari()&&(this.getHtmlElement().style.display="table-cell");this.getRefElement("agLabel").innerHTML=this.params.displayName}},t.TEMPLATE='<div class="ag-header-group-cell-label"><span ref="agLabel" class="ag-header-group-text"></span><span ref="agOpened" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-expanded"></span><span ref="agClosed" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-collapsed"></span></div>',n([u.Autowired("columnController"),r("design:type",l.ColumnController)],t.prototype,"columnController",void 0),n([u.Autowired("gridOptionsWrapper"),r("design:type",p.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([d.RefSelector("agOpened"),r("design:type",HTMLElement)],t.prototype,"eOpenIcon",void 0),n([d.RefSelector("agClosed"),r("design:type",HTMLElement)],t.prototype,"eCloseIcon",void 0),t}(s.Component);t.HeaderGroupComp=f},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),n=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=o(7),a=o(56),l=o(48),p=o(8),u=o(57),c=o(35),d=o(9),h=function(e){function t(){var t=e.call(this,'<div><input  ref="eColumnFloatingFilter" class="ag-floating-filter-input"></div>')||this;return t.lastKnownModel=null,t}return i(t,e),t.prototype.init=function(e){this.onFloatingFilterChanged=e.onFloatingFilterChanged,this.currentParentModel=e.currentParentModel;var t=null!=e.debounceMs?e.debounceMs:500,o=p._.debounce(this.syncUpWithParentFilter.bind(this),t);this.addDestroyableEventListener(this.eColumnFloatingFilter,"input",o),this.addDestroyableEventListener(this.eColumnFloatingFilter,"keypress",o),this.addDestroyableEventListener(this.eColumnFloatingFilter,"keydown",o);var i=e.column.getDefinition();i.filterParams&&i.filterParams.filterOptions&&1===i.filterParams.filterOptions.length&&"inRange"===i.filterParams.filterOptions[0]&&(this.eColumnFloatingFilter.readOnly=!0)},t.prototype.onParentModelChanged=function(e){if(!this.equalModels(this.lastKnownModel,e)){this.lastKnownModel=e;var t=this.asFloatingFilterText(e);t!==this.eColumnFloatingFilter.value&&(this.eColumnFloatingFilter.value=t)}},t.prototype.syncUpWithParentFilter=function(e){var t=this.asParentModel();if(!this.equalModels(this.lastKnownModel,t)){var o=null;o=p._.isKeyPressed(e,d.Constants.KEY_ENTER)?this.onFloatingFilterChanged({model:t,apply:!0}):this.onFloatingFilterChanged({model:t,apply:!1}),o&&(this.lastKnownModel=t)}},t.prototype.equalModels=function(e,t){return!!p._.referenceCompare(e,t)||!(!e||!t)&&(!Array.isArray(e)&&!Array.isArray(t)&&(p._.referenceCompare(e.type,t.type)&&p._.referenceCompare(e.filter,t.filter)&&p._.referenceCompare(e.filterTo,t.filterTo)&&p._.referenceCompare(e.filterType,t.filterType)))},n([l.RefSelector("eColumnFloatingFilter"),r("design:type",HTMLInputElement)],t.prototype,"eColumnFloatingFilter",void 0),t}(c.Component);t.InputTextFloatingFilterComp=h;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.asFloatingFilterText=function(e){return e?e.filter:""},t.prototype.asParentModel=function(){return{type:this.currentParentModel().type,filter:this.eColumnFloatingFilter.value,filterType:"text"}},t}(h);t.TextFloatingFilterComp=f;var g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.lastKnownModel=null,t}return i(t,e),t.prototype.init=function(e){this.onFloatingFilterChanged=e.onFloatingFilterChanged,this.currentParentModel=e.currentParentModel;var t=null!=e.debounceMs?e.debounceMs:500,o=p._.debounce(this.onDateChanged.bind(this),t),i={onDateChanged:o};this.dateComponent=this.componentRecipes.newDateComponent(i);var n=p._.loadTemplate("<div></div>");n.appendChild(p._.ensureElement(this.dateComponent.getGui())),this.setHtmlElement(n)},t.prototype.onDateChanged=function(){var e=this.currentParentModel(),t=this.asParentModel();this.equalModels(e,t)||(this.onFloatingFilterChanged({model:t,apply:!0}),this.lastKnownModel=t)},t.prototype.equalModels=function(e,t){return!!p._.referenceCompare(e,t)||!(!e||!t)&&(!Array.isArray(e)&&!Array.isArray(t)&&(p._.referenceCompare(e.type,t.type)&&p._.referenceCompare(e.dateFrom,t.dateFrom)&&p._.referenceCompare(e.dateTo,t.dateTo)&&p._.referenceCompare(e.filterType,t.filterType)))},t.prototype.asParentModel=function(){var e=this.currentParentModel(),t=this.dateComponent.getDate(),o=p._.serializeDateToYyyyMmDd(a.DateFilter.removeTimezone(t),"-");return{type:e.type,dateFrom:o,dateTo:e?e.dateTo:null,filterType:"date"}},t.prototype.onParentModelChanged=function(e){if(this.lastKnownModel=e,!e||!e.dateFrom)return void this.dateComponent.setDate(null);this.dateComponent.setDate(p._.parseYyyyMmDdToDate(e.dateFrom,"-"))},n([s.Autowired("componentRecipes"),r("design:type",u.ComponentRecipes)],t.prototype,"componentRecipes",void 0),t}(c.Component);t.DateFloatingFilterComp=g;var y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.asFloatingFilterText=function(e){var t=this.currentParentModel();if(null==e&&null==t)return"";if(null==e&&null!=t&&"inRange"!==t.type)return this.eColumnFloatingFilter.readOnly=!1,"";if(null!=t&&"inRange"===t.type){this.eColumnFloatingFilter.readOnly=!0;var o=this.asNumber(t.filter),i=this.asNumber(t.filterTo);return(o?o+"":"")+"-"+(i?i+"":"")}var n=this.asNumber(e.filter);return this.eColumnFloatingFilter.readOnly=!1,null!=n?n+"":""},t.prototype.asParentModel=function(){var e=this.currentParentModel(),t=this.asNumber(this.eColumnFloatingFilter.value),o=this.eColumnFloatingFilter.value,i=null;return i=null==t&&""===o?null:null==t?e.filter:t,{type:e.type,filter:i,filterTo:e?e.filterTo:null,filterType:"number"}},t.prototype.asNumber=function(e){if(null==e)return null;if(""===e)return null;var t=Number(e);return p._.isNumeric(t)?t:null},t}(h);t.NumberFloatingFilterComp=y;var v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.init=function(t){e.prototype.init.call(this,t),this.eColumnFloatingFilter.readOnly=!0},t.prototype.asFloatingFilterText=function(e){if(!e||0===e.length)return"";var t=e.length>10?e.slice(0,10).concat(["..."]):e;return"("+e.length+") "+t.join(",")},t.prototype.asParentModel=function(){return null==this.eColumnFloatingFilter.value||""===this.eColumnFloatingFilter.value?null:this.eColumnFloatingFilter.value.split(",")},t}(h);t.SetFloatingFilterComp=v;var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.init=function(t){e.prototype.init.call(this,t),this.eColumnFloatingFilter.readOnly=!0},t.prototype.onParentModelChanged=function(e){this.eColumnFloatingFilter.value=this.asFloatingFilterText(this.currentParentModel())},t.prototype.asFloatingFilterText=function(e){return e},t.prototype.asParentModel=function(){return null},t}(h);t.ReadModelAsStringFloatingFilterComp=m},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),n=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=o(7),a=o(17),l=o(8),p=o(67),u=o(35),c=o(48),d=o(4),h=o(68),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.init=function(e){this.column=e.column;var t=l._.loadTemplate('<div class="ag-header-cell" aria-hidden="true"><div class="ag-floating-filter-body" aria-hidden="true"></div></div>');this.enrichBody(t),this.setHtmlElement(t),this.setupWidth();var o=new p.SetLeftFeature(this.column,this.getHtmlElement(),this.beans);o.init(),this.addDestroyFunc(o.destroy.bind(o))},t.prototype.setupWidth=function(){this.addDestroyableEventListener(this.column,a.Column.EVENT_WIDTH_CHANGED,this.onColumnWidthChanged.bind(this)),this.onColumnWidthChanged()},t.prototype.onColumnWidthChanged=function(){this.getHtmlElement().style.width=this.column.getActualWidth()+"px"},n([s.Autowired("context"),r("design:type",s.Context)],t.prototype,"context",void 0),n([s.Autowired("beans"),r("design:type",h.Beans)],t.prototype,"beans",void 0),t}(u.Component);t.BaseFilterWrapperComp=f;var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.init=function(t){this.floatingFilterComp=t.floatingFilterComp,this.suppressFilterButton=t.suppressFilterButton,e.prototype.init.call(this,t),this.suppressFilterButton||this.addDestroyableEventListener(this.eButtonShowMainFilter,"click",this.showParentFilter.bind(this))},t.prototype.enrichBody=function(e){var t=e.querySelector(".ag-floating-filter-body"),o=l._.ensureElement(this.floatingFilterComp.getGui());this.suppressFilterButton?(t.appendChild(o),l._.removeCssClass(t,"ag-floating-filter-body"),l._.addCssClass(t,"ag-floating-filter-full-body")):(t.appendChild(o),e.appendChild(l._.loadTemplate('<div class="ag-floating-filter-button" aria-hidden="true">\n                    <button ref="eButtonShowMainFilter">...</button>            \n            </div>'))),this.floatingFilterComp.afterGuiAttached&&this.floatingFilterComp.afterGuiAttached({eComponent:o})},t.prototype.onParentModelChanged=function(e){this.floatingFilterComp.onParentModelChanged(e)},t.prototype.showParentFilter=function(){this.menuFactory.showMenuAfterButtonClick(this.column,this.eButtonShowMainFilter,"filterMenuTab",["filterMenuTab"])},n([c.RefSelector("eButtonShowMainFilter"),r("design:type",HTMLInputElement)],t.prototype,"eButtonShowMainFilter",void 0),n([s.Autowired("menuFactory"),r("design:type",Object)],t.prototype,"menuFactory",void 0),n([s.Autowired("gridOptionsWrapper"),r("design:type",d.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),t}(f);t.FloatingFilterWrapperComp=g;var y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.enrichBody=function(e){},t.prototype.onParentModelChanged=function(e){},t}(f);t.EmptyFloatingFilterWrapperComp=y},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var n=o(8),r=o(17),s=o(36),a=function(e){function t(t,o,i,n){var r=e.call(this)||this;return r.columnOrGroup=t,r.eCell=o,r.colsSpanning=n,r.beans=i,r}return i(t,e),t.prototype.setColsSpanning=function(e){this.colsSpanning=e,this.onLeftChanged()},t.prototype.getColumnOrGroup=function(){return this.beans.gridOptionsWrapper.isEnableRtl()&&this.colsSpanning?this.colsSpanning[this.colsSpanning.length-1]:this.columnOrGroup},t.prototype.init=function(){this.addDestroyableEventListener(this.columnOrGroup,r.Column.EVENT_LEFT_CHANGED,this.onLeftChanged.bind(this)),this.setLeftFirstTime()},t.prototype.setLeftFirstTime=function(){var e=this.beans.gridOptionsWrapper.isSuppressColumnMoveAnimation(),t=n.Utils.exists(this.columnOrGroup.getOldLeft());this.beans.columnAnimationService.isActive()&&t&&!e?this.animateInLeft():this.onLeftChanged()},t.prototype.animateInLeft=function(){var e=this,t=this.getColumnOrGroup().getLeft(),o=this.getColumnOrGroup().getOldLeft();this.setLeft(o),this.actualLeft=t,this.beans.columnAnimationService.executeNextVMTurn(function(){e.actualLeft===t&&e.setLeft(t)})},t.prototype.onLeftChanged=function(){this.actualLeft=this.getColumnOrGroup().getLeft(),this.setLeft(this.actualLeft)},t.prototype.setLeft=function(e){n.Utils.exists(e)&&(this.eCell.style.left=e+"px")},t}(s.BeanStub);t.SetLeftFeature=a},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(7),s=o(15),a=o(12),l=o(4),p=o(20),u=o(23),c=o(49),d=o(31),h=o(5),f=o(69),g=o(38),y=o(70),v=o(77),m=o(52),C=o(81),E=o(73),w=o(82),R=o(83),_=o(24),O=o(41),A=o(45),S=o(58),b=function(){function e(){}return e.prototype.postConstruct=function(){this.forPrint=this.gridOptionsWrapper.isForPrint()},i([r.Autowired("paginationProxy"),n("design:type",O.PaginationProxy)],e.prototype,"paginationProxy",void 0),i([r.Autowired("gridPanel"),n("design:type",_.GridPanel)],e.prototype,"gridPanel",void 0),i([r.Autowired("context"),n("design:type",r.Context)],e.prototype,"context",void 0),i([r.Autowired("columnApi"),n("design:type",s.ColumnApi)],e.prototype,"columnApi",void 0),i([r.Autowired("gridApi"),n("design:type",a.GridApi)],e.prototype,"gridApi",void 0),i([r.Autowired("gridOptionsWrapper"),n("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.Autowired("expressionService"),n("design:type",p.ExpressionService)],e.prototype,"expressionService",void 0),i([r.Autowired("rowRenderer"),n("design:type",u.RowRenderer)],e.prototype,"rowRenderer",void 0),i([r.Autowired("$compile"),n("design:type",Object)],e.prototype,"$compile",void 0),i([r.Autowired("templateService"),n("design:type",c.TemplateService)],e.prototype,"templateService",void 0),i([r.Autowired("valueService"),n("design:type",d.ValueService)],e.prototype,"valueService",void 0),i([r.Autowired("eventService"),n("design:type",h.EventService)],e.prototype,"eventService",void 0),i([r.Autowired("columnController"),n("design:type",s.ColumnController)],e.prototype,"columnController",void 0),i([r.Autowired("columnAnimationService"),n("design:type",f.ColumnAnimationService)],e.prototype,"columnAnimationService",void 0),i([r.Optional("rangeController"),n("design:type",Object)],e.prototype,"rangeController",void 0),i([r.Autowired("focusedCellController"),n("design:type",g.FocusedCellController)],e.prototype,"focusedCellController",void 0),i([r.Optional("contextMenuFactory"),n("design:type",Object)],e.prototype,"contextMenuFactory",void 0),i([r.Autowired("cellEditorFactory"),n("design:type",y.CellEditorFactory)],e.prototype,"cellEditorFactory",void 0),i([r.Autowired("cellRendererFactory"),n("design:type",v.CellRendererFactory)],e.prototype,"cellRendererFactory",void 0),i([r.Autowired("popupService"),n("design:type",m.PopupService)],e.prototype,"popupService",void 0),i([r.Autowired("cellRendererService"),n("design:type",C.CellRendererService)],e.prototype,"cellRendererService",void 0),i([r.Autowired("valueFormatterService"),n("design:type",E.ValueFormatterService)],e.prototype,"valueFormatterService",void 0),i([r.Autowired("stylingService"),n("design:type",w.StylingService)],e.prototype,"stylingService",void 0),i([r.Autowired("columnHoverService"),n("design:type",R.ColumnHoverService)],e.prototype,"columnHoverService",void 0),i([r.Autowired("enterprise"),n("design:type",Boolean)],e.prototype,"enterprise",void 0),i([r.Autowired("componentResolver"),n("design:type",S.ComponentResolver)],e.prototype,"componentResolver",void 0),i([r.Autowired("animationFrameService"),n("design:type",A.AnimationFrameService)],e.prototype,"taskQueue",void 0),i([r.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"postConstruct",null),e=i([r.Bean("beans")],e)}();t.Beans=b},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(7),s=o(4),a=o(24),l=o(8),p=function(){function e(){this.executeNextFuncs=[],this.executeLaterFuncs=[],this.active=!1,this.animationThreadCount=0}return e.prototype.isActive=function(){return this.active},e.prototype.start=function(){this.active||this.gridOptionsWrapper.isSuppressColumnMoveAnimation()||this.gridOptionsWrapper.isEnableRtl()||(this.ensureAnimationCssClassPresent(),this.active=!0)},e.prototype.finish=function(){this.active&&(this.flush(),this.active=!1)},e.prototype.executeNextVMTurn=function(e){this.active?this.executeNextFuncs.push(e):e()},e.prototype.executeLaterVMTurn=function(e){this.active?this.executeLaterFuncs.push(e):e()},e.prototype.ensureAnimationCssClassPresent=function(){var e=this;this.animationThreadCount++;var t=this.animationThreadCount;l.Utils.addCssClass(this.gridPanel.getRoot(),"ag-column-moving"),this.executeLaterFuncs.push(function(){e.animationThreadCount===t&&l.Utils.removeCssClass(e.gridPanel.getRoot(),"ag-column-moving")})},e.prototype.flush=function(){var e=this.executeNextFuncs;this.executeNextFuncs=[];var t=this.executeLaterFuncs;this.executeLaterFuncs=[],0===e.length&&0===t.length||(setTimeout(function(){return e.forEach(function(e){return e()})},0),setTimeout(function(){return t.forEach(function(e){return e()})},300))},i([r.Autowired("gridOptionsWrapper"),n("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.Autowired("gridPanel"),n("design:type",a.GridPanel)],e.prototype,"gridPanel",void 0),e=i([r.Bean("columnAnimationService")],e)}();t.ColumnAnimationService=p},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(7),s=o(8),a=o(71),l=o(72),p=o(42),u=o(74),c=o(75),d=o(4),h=o(76),f=function(){function e(){this.cellEditorMap={}}return t=e,e.prototype.init=function(){this.cellEditorMap[t.TEXT]=a.TextCellEditor,this.cellEditorMap[t.SELECT]=l.SelectCellEditor,this.cellEditorMap[t.POPUP_TEXT]=u.PopupTextCellEditor,this.cellEditorMap[t.POPUP_SELECT]=c.PopupSelectCellEditor,this.cellEditorMap[t.LARGE_TEXT]=h.LargeTextCellEditor},e.prototype.addCellEditor=function(e,t){this.cellEditorMap[e]=t},e.prototype.createCellEditor=function(e,o){var i;s.Utils.missing(e)?i=this.cellEditorMap[t.TEXT]:"string"==typeof e?(i=this.cellEditorMap[e],s.Utils.missing(i)&&(console.warn("ag-Grid: unable to find cellEditor for key "+e),i=this.cellEditorMap[t.TEXT])):i=e;var n=new i;return this.context.wireBean(n),n.init&&n.init(o),n.isPopup&&n.isPopup()&&(this.gridOptionsWrapper.isFullRowEdit()&&console.warn("ag-Grid: popup cellEditor does not work with fullRowEdit - you cannot use them both - either turn off fullRowEdit, or stop using popup editors."),n=new p.PopupEditorWrapper(n),this.context.wireBean(n),n.init(o)),n},e.TEXT="text",e.SELECT="select",e.POPUP_TEXT="popupText",e.POPUP_SELECT="popupSelect",e.LARGE_TEXT="largeText",i([r.Autowired("context"),n("design:type",r.Context)],e.prototype,"context",void 0),i([r.Autowired("gridOptionsWrapper"),n("design:type",d.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),e=t=i([r.Bean("cellEditorFactory")],e);var t}();t.CellEditorFactory=f},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var n=o(9),r=o(35),s=o(8),a=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return i(t,e),t.prototype.init=function(e){this.params=e;var t,o=this.getGui();if(e.cellStartedEdit){this.focusAfterAttached=!0;e.keyPress===n.Constants.KEY_BACKSPACE||e.keyPress===n.Constants.KEY_DELETE?t="":e.charPress?t=e.charPress:(t=this.getStartValue(e),e.keyPress!==n.Constants.KEY_F2&&(this.highlightAllOnFocus=!0))}else this.focusAfterAttached=!1,t=this.getStartValue(e);s.Utils.exists(t)&&(o.value=t),this.addDestroyableEventListener(o,"keydown",function(e){(e.keyCode===n.Constants.KEY_LEFT||e.keyCode===n.Constants.KEY_RIGHT||e.keyCode===n.Constants.KEY_UP||e.keyCode===n.Constants.KEY_DOWN||e.keyCode===n.Constants.KEY_PAGE_DOWN||e.keyCode===n.Constants.KEY_PAGE_UP||e.keyCode===n.Constants.KEY_PAGE_HOME||e.keyCode===n.Constants.KEY_PAGE_END)&&(e.stopPropagation(),e.keyCode!==n.Constants.KEY_LEFT&&e.keyCode!==n.Constants.KEY_RIGHT&&e.preventDefault())})},t.prototype.afterGuiAttached=function(){if(this.focusAfterAttached){var e=this.getGui();if(e.focus(),this.highlightAllOnFocus)e.select();else{var t=e.value?e.value.length:0;t>0&&e.setSelectionRange(t,t)}}},t.prototype.focusIn=function(){var e=this.getGui();e.focus(),e.select()},t.prototype.getValue=function(){var e=this.getGui();return this.params.parseValue(e.value)},t.prototype.getStartValue=function(e){return e.useFormatter||e.column.getColDef().refData?e.formatValue(e.value):e.value},t.TEMPLATE='<input class="ag-cell-edit-input" type="text"/>',t}(r.Component);t.TextCellEditor=a},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),n=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=o(35),a=o(8),l=o(9),p=o(7),u=o(4),c=o(73),d=function(e){function t(){var t=e.call(this,'<div class="ag-cell-edit-input"><select class="ag-cell-edit-input"/></div>')||this;return t.eSelect=t.getHtmlElement().querySelector("select"),t}return i(t,e),t.prototype.init=function(e){var t=this;if(this.focusAfterAttached=e.cellStartedEdit,a.Utils.missing(e.values))return void console.log("ag-Grid: no values found for select cellEditor");e.values.forEach(function(o){var i=document.createElement("option");i.value=o;var n=t.valueFormatterService.formatValue(e.column,null,null,o),r=null!==n&&void 0!==n;i.text=r?n:o,e.value===o&&(i.selected=!0),t.eSelect.appendChild(i)}),this.gridOptionsWrapper.isFullRowEdit()||this.addDestroyableEventListener(this.eSelect,"change",function(){return e.stopEditing()}),this.addDestroyableEventListener(this.eSelect,"keydown",function(e){(e.keyCode===l.Constants.KEY_UP||e.keyCode===l.Constants.KEY_DOWN)&&e.stopPropagation()}),this.addDestroyableEventListener(this.eSelect,"mousedown",function(e){e.stopPropagation()})},t.prototype.afterGuiAttached=function(){this.focusAfterAttached&&this.eSelect.focus()},t.prototype.focusIn=function(){this.eSelect.focus()},t.prototype.getValue=function(){return this.eSelect.value},n([p.Autowired("gridOptionsWrapper"),r("design:type",u.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([p.Autowired("valueFormatterService"),r("design:type",c.ValueFormatterService)],t.prototype,"valueFormatterService",void 0),t}(s.Component);t.SelectCellEditor=d},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(7),s=o(4),a=o(20),l=function(){function e(){}return e.prototype.formatValue=function(e,t,o,i){var n,r=e.getColDef();n=t&&t.rowPinned&&r.pinnedRowValueFormatter?r.pinnedRowValueFormatter:r.valueFormatter;var s=null;if(n){var a={value:i,node:t,data:t?t.data:null,colDef:e.getColDef(),column:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};a.$scope=o,s=this.expressionService.evaluate(n,a)}else if(r.refData)return r.refData[i];return s},i([r.Autowired("gridOptionsWrapper"),n("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.Autowired("expressionService"),n("design:type",a.ExpressionService)],e.prototype,"expressionService",void 0),e=i([r.Bean("valueFormatterService")],e)}();t.ValueFormatterService=l},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var n=o(71),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.isPopup=function(){return!0},t}(n.TextCellEditor);t.PopupTextCellEditor=r},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var n=o(72),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.isPopup=function(){return!0},t}(n.SelectCellEditor);t.PopupSelectCellEditor=r},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var n=o(35),r=o(9),s=o(8),a=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return i(t,e),t.prototype.init=function(e){this.params=e,this.focusAfterAttached=e.cellStartedEdit,this.textarea=document.createElement("textarea"),this.textarea.maxLength=e.maxLength?e.maxLength:"200",this.textarea.cols=e.cols?e.cols:"60",this.textarea.rows=e.rows?e.rows:"10",s.Utils.exists(e.value)&&(this.textarea.value=e.value.toString()),this.getHtmlElement().querySelector(".ag-large-textarea").appendChild(this.textarea),this.addGuiEventListener("keydown",this.onKeyDown.bind(this))},t.prototype.onKeyDown=function(e){var t=e.which||e.keyCode;(t==r.Constants.KEY_LEFT||t==r.Constants.KEY_UP||t==r.Constants.KEY_RIGHT||t==r.Constants.KEY_DOWN||e.shiftKey&&t==r.Constants.KEY_ENTER)&&e.stopPropagation()},t.prototype.afterGuiAttached=function(){this.focusAfterAttached&&this.textarea.focus()},t.prototype.getValue=function(){return this.textarea.value},t.prototype.isPopup=function(){return!0},t.TEMPLATE='<div class="ag-large-text" tabindex="0"><div class="ag-large-textarea"></div></div>',t}(n.Component);t.LargeTextCellEditor=a},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(7),s=o(8),a=o(4),l=o(5),p=o(20),u=o(78),c=o(79),d=o(80),h=function(){function e(){this.cellRendererMap={}}return t=e,e.prototype.init=function(){this.cellRendererMap[t.ANIMATE_SLIDE]=u.AnimateSlideCellRenderer,this.cellRendererMap[t.ANIMATE_SHOW_CHANGE]=c.AnimateShowChangeCellRenderer,this.cellRendererMap[t.GROUP]=d.GroupCellRenderer},e.prototype.addCellRenderer=function(e,t){this.cellRendererMap[e]=t},e.prototype.getCellRenderer=function(e){var t=this.cellRendererMap[e];return s.Utils.missing(t)?(console.warn("ag-Grid: unable to find cellRenderer for key "+e),null):t},e.ANIMATE_SLIDE="animateSlide",e.ANIMATE_SHOW_CHANGE="animateShowChange",e.GROUP="group",i([r.Autowired("gridOptionsWrapper"),n("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.Autowired("expressionService"),n("design:type",p.ExpressionService)],e.prototype,"expressionService",void 0),i([r.Autowired("eventService"),n("design:type",l.EventService)],e.prototype,"eventService",void 0),i([r.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),e=t=i([r.Bean("cellRendererFactory")],e);var t}();t.CellRendererFactory=h},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var n=o(8),r=o(35),s=function(e){function t(){var o=e.call(this,t.TEMPLATE)||this;return o.refreshCount=0,o.eCurrent=o.queryForHtmlElement(".ag-value-slide-current"),o}return i(t,e),t.prototype.init=function(e){this.params=e,this.refresh(e)},t.prototype.addSlideAnimation=function(){var e=this;this.refreshCount++;var t=this.refreshCount;this.ePrevious&&this.getHtmlElement().removeChild(this.ePrevious),this.ePrevious=n.Utils.loadTemplate('<span class="ag-value-slide-previous ag-value-slide-out"></span>'),this.ePrevious.innerHTML=this.eCurrent.innerHTML,this.getHtmlElement().insertBefore(this.ePrevious,this.eCurrent),setTimeout(function(){t===e.refreshCount&&n.Utils.addCssClass(e.ePrevious,"ag-value-slide-out-end")},50),setTimeout(function(){t===e.refreshCount&&(e.getHtmlElement().removeChild(e.ePrevious),e.ePrevious=null)},3e3)},t.prototype.refresh=function(e){var t=e.value;if(n.Utils.missing(t)&&(t=""),t!==this.lastValue)return this.addSlideAnimation(),this.lastValue=t,n.Utils.exists(e.valueFormatted)?this.eCurrent.innerHTML=e.valueFormatted:n.Utils.exists(e.value)?this.eCurrent.innerHTML=t:this.eCurrent.innerHTML="",!0},t.TEMPLATE='<span><span class="ag-value-slide-current"></span></span>',t}(r.Component);t.AnimateSlideCellRenderer=s},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var n=o(8),r=o(35),s="&#65514;",a="&#65516;",l=function(e){function t(){var o=e.call(this,t.TEMPLATE)||this;return o.refreshCount=0,o}return i(t,e),t.prototype.init=function(e){this.eValue=this.queryForHtmlElement(".ag-value-change-value"),this.eDelta=this.queryForHtmlElement(".ag-value-change-delta"),this.refresh(e)},t.prototype.showDelta=function(e,t){var o=Math.abs(t),i=e.formatValue(o),r=n.Utils.exists(i)?i:o,l=t>=0;this.eDelta.innerHTML=l?s+r:a+r,n.Utils.addOrRemoveCssClass(this.eDelta,"ag-value-change-delta-up",l),n.Utils.addOrRemoveCssClass(this.eDelta,"ag-value-change-delta-down",!l)},t.prototype.setTimerToRemoveDelta=function(){var e=this;this.refreshCount++;var t=this.refreshCount;setTimeout(function(){t===e.refreshCount&&e.hideDeltaValue()},2e3)},t.prototype.hideDeltaValue=function(){n.Utils.removeCssClass(this.eValue,"ag-value-change-value-highlight"),this.eDelta.innerHTML=""},t.prototype.refresh=function(e){var t=e.value;if(t!==this.lastValue){if(n.Utils.exists(e.valueFormatted)?this.eValue.innerHTML=e.valueFormatted:n.Utils.exists(e.value)?this.eValue.innerHTML=t:this.eValue.innerHTML="","number"==typeof t&&"number"==typeof this.lastValue){var o=t-this.lastValue;this.showDelta(e,o)}return this.lastValue&&n.Utils.addCssClass(this.eValue,"ag-value-change-value-highlight"),this.setTimerToRemoveDelta(),this.lastValue=t,!0}},t.TEMPLATE='<span><span class="ag-value-change-delta"></span><span class="ag-value-change-value"></span></span>',t}(r.Component);t.AnimateShowChangeCellRenderer=l},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),n=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=o(4),a=o(20),l=o(5),p=o(9),u=o(8),c=o(7),d=o(35),h=o(30),f=o(81),g=o(73),y=o(37),v=o(15),m=o(17),C=o(48),E=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return i(t,e),t.prototype.init=function(e){this.params=e;var t=this.isEmbeddedRowMismatch(),o=null==e.value;this.cellIsBlank=t||o,this.cellIsBlank||(this.setupDragOpenParents(),this.addExpandAndContract(),this.addCheckboxIfNeeded(),this.addValueElement(),this.addPadding())},t.prototype.isEmbeddedRowMismatch=function(){if(this.gridOptionsWrapper.isEmbedFullWidthRows()){var e=this.params.pinned===m.Column.PINNED_LEFT,t=this.params.pinned===m.Column.PINNED_RIGHT,o=!e&&!t;return this.gridOptionsWrapper.isEnableRtl()?this.columnController.isPinningLeft()?!t:!o:this.columnController.isPinningLeft()?!e:!o}return!1},t.prototype.setPadding=function(){if(!this.gridOptionsWrapper.isGroupHideOpenParents()){var e,t=this.params,o=t.node;if(o.uiLevel<=0)e=0;else{var i=t.padding>=0?t.padding:this.gridOptionsWrapper.getGroupPaddingSize();e=o.uiLevel*i;var n=this.columnController.isPivotMode()&&t.node.leafGroup;o.footer?e+=this.gridOptionsWrapper.getFooterPaddingAddition():o.isExpandable()&&!n||(e+=this.gridOptionsWrapper.getLeafNodePaddingAddition())}this.gridOptionsWrapper.isEnableRtl()?this.getHtmlElement().style.paddingRight=e+"px":this.getHtmlElement().style.paddingLeft=e+"px"}},t.prototype.addPadding=function(){var e=this.params.node;this.params.suppressPadding||(this.addDestroyableEventListener(e,h.RowNode.EVENT_UI_LEVEL_CHANGED,this.setPadding.bind(this)),this.setPadding())},t.prototype.addValueElement=function(){var e=this.params,t=this.displayedGroup;t.footer?this.createFooterCell():t.group||u.Utils.get(e.colDef,"cellRendererParams.innerRenderer",null)||u.Utils.get(e.colDef,"cellRendererParams.innerRendererFramework",null)?(this.createGroupCell(),t.group&&this.addChildCount()):this.createLeafCell()},t.prototype.createFooterCell=function(){var e,t=this.params.footerValueGetter;if(t){var o=u.Utils.cloneObject(this.params);o.value=this.params.value,"function"==typeof t?e=t(o):"string"==typeof t?e=this.expressionService.evaluate(t,o):console.warn("ag-Grid: footerValueGetter should be either a function or a string (expression)")}else e="Total "+this.params.value;this.eValue.innerHTML=e},t.prototype.createGroupCell=function(){var e=this.params,t=this.displayedGroup.rowGroupColumn,o=t||e.column,i=this.params.value,n=this.valueFormatterService.formatValue(o,e.node,e.scope,i);e.valueFormatted=n,1==e.fullWidth?this.cellRendererService.useFullWidthGroupRowInnerCellRenderer(this.eValue,e):this.cellRendererService.useInnerCellRenderer(this.params.colDef.cellRendererParams,o.getColDef(),this.eValue,e)},t.prototype.addChildCount=function(){this.params.suppressCount||(this.addDestroyableEventListener(this.displayedGroup,h.RowNode.EVENT_ALL_CHILDREN_COUNT_CELL_CHANGED,this.updateChildCount.bind(this)),this.updateChildCount())},t.prototype.updateChildCount=function(){var e=this.displayedGroup.allChildrenCount;this.eChildCount.innerHTML=e>=0?"("+e+")":""},t.prototype.createLeafCell=function(){u.Utils.exists(this.params.value)&&(this.eValue.innerHTML=this.params.value)},t.prototype.isUserWantsSelected=function(){var e=this.params.checkbox;return"function"==typeof e?e(this.params):!0===e},t.prototype.addCheckboxIfNeeded=function(){var e=this.params.node;if(this.isUserWantsSelected()&&!e.footer&&!e.rowPinned&&!e.flower){var t=new y.CheckboxSelectionComponent;this.context.wireBean(t),t.init({rowNode:e,column:this.params.column}),this.eCheckbox.appendChild(t.getHtmlElement()),this.addDestroyFunc(function(){return t.destroy()})}},t.prototype.addExpandAndContract=function(){var e=this.params,t=e.eGridCell,o=u.Utils.createIconNoSpan("groupExpanded",this.gridOptionsWrapper,null),i=u.Utils.createIconNoSpan("groupContracted",this.gridOptionsWrapper,null);this.eExpanded.appendChild(o),this.eContracted.appendChild(i),this.addDestroyableEventListener(this.eExpanded,"click",this.onExpandClicked.bind(this)),this.addDestroyableEventListener(this.eContracted,"click",this.onExpandClicked.bind(this)),this.addDestroyableEventListener(t,"keydown",this.onKeyDown.bind(this)),this.addDestroyableEventListener(e.node,h.RowNode.EVENT_EXPANDED_CHANGED,this.showExpandAndContractIcons.bind(this)),this.showExpandAndContractIcons(),!this.gridOptionsWrapper.isEnableGroupEdit()&&this.isExpandable()&&this.addDestroyableEventListener(t,"dblclick",this.onCellDblClicked.bind(this))},t.prototype.onKeyDown=function(e){if(u.Utils.isKeyPressed(e,p.Constants.KEY_ENTER)){if(this.params.column.isCellEditable(this.params.node))return;e.preventDefault(),this.onExpandOrContract()}},t.prototype.setupDragOpenParents=function(){var e=this.params.column,t=this.params.node;if(this.gridOptionsWrapper.isGroupHideOpenParents())if(t.group){var o=t.rowGroupColumn;this.draggedFromHideOpenParents=!e.isRowGroupDisplayed(o.getId())}else this.draggedFromHideOpenParents=!0;else this.draggedFromHideOpenParents=!1;if(this.draggedFromHideOpenParents)for(var i=t.parent;;){if(u.Utils.missing(i))break;if(i.rowGroupColumn&&e.isRowGroupDisplayed(i.rowGroupColumn.getId())){this.displayedGroup=i;break}i=i.parent}u.Utils.missing(this.displayedGroup)&&(this.displayedGroup=t)},t.prototype.onExpandClicked=function(){this.onExpandOrContract()},t.prototype.onCellDblClicked=function(e){var t=u.Utils.getTarget(e);t!==this.eExpanded&&t!==this.eContracted||this.onExpandOrContract()},t.prototype.onExpandOrContract=function(){var e=this.displayedGroup;e.setExpanded(!e.expanded),this.gridOptionsWrapper.isGroupIncludeFooter()&&this.params.api.redrawRows({rowNodes:[e]})},t.prototype.isExpandable=function(){var e=this.params.node,t=this.columnController.isPivotMode()&&e.leafGroup;return this.draggedFromHideOpenParents||e.isExpandable()&&!e.footer&&!t},t.prototype.showExpandAndContractIcons=function(){var e=this.params.node;if(this.isExpandable()){var t=!!this.draggedFromHideOpenParents||e.expanded;u.Utils.setVisible(this.eContracted,!t),u.Utils.setVisible(this.eExpanded,t)}else u.Utils.setVisible(this.eExpanded,!1),u.Utils.setVisible(this.eContracted,!1)},t.prototype.refresh=function(){return!1},t.TEMPLATE='<span><span class="ag-group-expanded" ref="eExpanded"></span><span class="ag-group-contracted" ref="eContracted"></span><span class="ag-group-checkbox" ref="eCheckbox"></span><span class="ag-group-value" ref="eValue"></span><span class="ag-group-child-count" ref="eChildCount"></span></span>',n([c.Autowired("gridOptionsWrapper"),r("design:type",s.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([c.Autowired("expressionService"),r("design:type",a.ExpressionService)],t.prototype,"expressionService",void 0),n([c.Autowired("eventService"),r("design:type",l.EventService)],t.prototype,"eventService",void 0),n([c.Autowired("cellRendererService"),r("design:type",f.CellRendererService)],t.prototype,"cellRendererService",void 0),n([c.Autowired("valueFormatterService"),r("design:type",g.ValueFormatterService)],t.prototype,"valueFormatterService",void 0),n([c.Autowired("context"),r("design:type",c.Context)],t.prototype,"context",void 0),n([c.Autowired("columnController"),r("design:type",v.ColumnController)],t.prototype,"columnController",void 0),n([C.RefSelector("eExpanded"),r("design:type",HTMLElement)],t.prototype,"eExpanded",void 0),n([C.RefSelector("eContracted"),r("design:type",HTMLElement)],t.prototype,"eContracted",void 0),n([C.RefSelector("eCheckbox"),r("design:type",HTMLElement)],t.prototype,"eCheckbox",void 0),n([C.RefSelector("eValue"),r("design:type",HTMLElement)],t.prototype,"eValue",void 0),n([C.RefSelector("eChildCount"),r("design:type",HTMLElement)],t.prototype,"eChildCount",void 0),t}(d.Component);t.GroupCellRenderer=E},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(7),s=o(57),a=o(58),l=o(8),p=function(){function e(){}return e.prototype.useCellRenderer=function(e,t,o){var i=this.componentRecipes.newCellRenderer(e,o);return null!=i?this.bindToHtml(i,t):t.innerText=null!=o.valueFormatted?o.valueFormatted:o.value,i},e.prototype.useFilterCellRenderer=function(e,t,o){var i=this.componentRecipes.newCellRenderer(e.filterParams,o);return null!=i?this.bindToHtml(i,t):t.innerText=null!=o.valueFormatted?o.valueFormatted:o.value,i},e.prototype.useInnerCellRenderer=function(e,t,o,i){var n=null,r=this.componentResolver.getComponentToUse(e,"innerRenderer");if(r&&null!=r.component&&r.source!=a.ComponentSource.DEFAULT)n=this.componentRecipes.newInnerCellRenderer(e,i);else{var s=this.componentResolver.getComponentToUse(t,"cellRenderer");n=s&&s.source!=a.ComponentSource.DEFAULT?this.componentRecipes.newCellRenderer(t,i):s&&s.source==a.ComponentSource.DEFAULT&&l._.get(t,"cellRendererParams.innerRenderer",null)?this.componentRecipes.newInnerCellRenderer(t.cellRendererParams,i):this.componentRecipes.newCellRenderer({},i)}return null!=n?this.bindToHtml(n,o):o.innerText=null!=i.valueFormatted?i.valueFormatted:i.value,n},e.prototype.useFullWidthGroupRowInnerCellRenderer=function(e,t){var o=this.componentRecipes.newFullWidthGroupRowInnerCellRenderer(t);return null!=o?this.bindToHtml(o,e):e.innerText=null!=t.valueFormatted?t.valueFormatted:t.value,o},e.prototype.bindToHtml=function(e,t){var o=e.getGui();return null!=o&&("object"==typeof o?t.appendChild(o):t.innerHTML=o),e},i([r.Autowired("componentRecipes"),n("design:type",s.ComponentRecipes)],e.prototype,"componentRecipes",void 0),i([r.Autowired("componentResolver"),n("design:type",a.ComponentResolver)],e.prototype,"componentResolver",void 0),e=i([r.Bean("cellRendererService")],e)}();t.CellRendererService=p},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(7),s=o(20),a=function(){function e(){}return e.prototype.processAllCellClasses=function(e,t,o,i){this.processCellClassRules(e,t,o,i),this.processStaticCellClasses(e,t,o)},e.prototype.processCellClassRules=function(e,t,o,i){var n=e.cellClassRules;if("object"==typeof n&&null!==n)for(var r=Object.keys(n),s=0;s<r.length;s++){var a=r[s],l=n[a],p=void 0;"string"==typeof l?p=this.expressionService.evaluate(l,t):"function"==typeof l&&(p=l(t)),p?o(a):i&&i(a)}},e.prototype.processStaticCellClasses=function(e,t,o){if(e.cellClass){var i=void 0;i="function"==typeof e.cellClass?(0,e.cellClass)(t):e.cellClass,"string"==typeof i?o(i):Array.isArray(i)&&i.forEach(function(e){o(e)})}},i([r.Autowired("expressionService"),n("design:type",s.ExpressionService)],e.prototype,"expressionService",void 0),e=i([r.Bean("stylingService")],e)}();t.StylingService=a},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),n=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=o(5),a=o(7),l=o(11),p=o(36),u=o(15),c=o(12),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.init=function(){this.addDestroyableEventListener(this.eventService,l.Events.EVENT_CELL_MOUSE_OVER,this.onCellMouseOver.bind(this)),this.addDestroyableEventListener(this.eventService,l.Events.EVENT_CELL_MOUSE_OUT,this.onCellMouseOut.bind(this))},t.prototype.onCellMouseOver=function(e){this.currentlySelectedColumn=e.column;var t={type:l.Events.EVENT_COLUMN_HOVER_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},t.prototype.onCellMouseOut=function(){this.currentlySelectedColumn=null;var e={type:l.Events.EVENT_COLUMN_HOVER_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},t.prototype.isHovered=function(e){return e==this.currentlySelectedColumn},n([a.Autowired("eventService"),r("design:type",s.EventService)],t.prototype,"eventService",void 0),n([a.Autowired("columnApi"),r("design:type",u.ColumnApi)],t.prototype,"columnApi",void 0),n([a.Autowired("gridApi"),r("design:type",c.GridApi)],t.prototype,"gridApi",void 0),n([a.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],t.prototype,"init",null),t=n([a.Bean("columnHoverService")],t)}(p.BeanStub);t.ColumnHoverService=d},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(7),s=o(85),a=function(){function e(){}return e.prototype.init=function(e){this.params=e},e.prototype.refresh=function(e){return this.params=e,!1},e.prototype.getGui=function(){var e=null!=this.params.valueFormatted?this.params.valueFormatted:this.params.value;return null==e?"":"<span>"+e+"</span>"},e}();t.DefaultCellRenderer=a;var l=function(){function e(){}return e.prototype.adaptFunction=function(e,t,o,i){if(null==t)return{component:null,type:o,source:i};var n=this.componentMetadataProvider.retrieve(e);return n&&n.functionAdapter?{type:o,component:n.functionAdapter(t),source:i}:(console.error("It seems like you are providing a function as a component: "+t+", but this component: ["+e+"] doesnt accept functions"),null)},e.prototype.adaptCellRendererFunction=function(e){return function(){function t(){}return t.prototype.refresh=function(e){return!1},t.prototype.getGui=function(){var t=e(this.params);return null==t?"":t},t.prototype.init=function(e){this.params=e},t}()},e.prototype.doesImplementIComponent=function(e){return!!e&&(e.prototype&&"getGui"in e.prototype)},i([r.Autowired("componentMetadataProvider"),n("design:type",s.ComponentMetadataProvider)],e.prototype,"componentMetadataProvider",void 0),e=i([r.Bean("agComponentUtils")],e)}();t.AgComponentUtils=l},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(7),s=o(84),a=function(){function e(){}return e.prototype.postConstruct=function(){this.componentMetaData={dateComponent:{mandatoryMethodList:["getDate","setDate"],optionalMethodList:[]},headerComponent:{mandatoryMethodList:[],optionalMethodList:[]},headerGroupComponent:{mandatoryMethodList:[],optionalMethodList:[]},floatingFilterComponent:{mandatoryMethodList:["onParentModelChanged"],optionalMethodList:["afterGuiAttached"]},floatingFilterWrapperComponent:{mandatoryMethodList:[],optionalMethodList:[]},filterComponent:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged"]},cellRenderer:{mandatoryMethodList:["refresh"],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},innerRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},fullWidthCellRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},pinnedRowCellRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},groupRowInnerRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)}}},e.prototype.retrieve=function(e){return this.componentMetaData[e]},i([r.Autowired("agComponentUtils"),n("design:type",s.AgComponentUtils)],e.prototype,"agComponentUtils",void 0),i([r.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"postConstruct",null),e=i([r.Bean("componentMetadataProvider")],e)}();t.ComponentMetadataProvider=a},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),n=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=o(35),a=o(7),l=o(4),p=o(48),u=o(8),c=o(5),d=o(11),h=o(23),f=o(41),g=function(e){function t(){return e.call(this)||this}return i(t,e),t.prototype.postConstruct=function(){this.setTemplate(this.getTemplate()),this.addDestroyableEventListener(this.eventService,d.Events.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addDestroyableEventListener(this.btFirst,"click",this.onBtFirst.bind(this)),this.addDestroyableEventListener(this.btLast,"click",this.onBtLast.bind(this)),this.addDestroyableEventListener(this.btNext,"click",this.onBtNext.bind(this)),this.addDestroyableEventListener(this.btPrevious,"click",this.onBtPrevious.bind(this)),this.onPaginationChanged()},t.prototype.onPaginationChanged=function(){this.enableOrDisableButtons(),this.updateRowLabels(),this.setCurrentPageLabel(),this.setTotalLabels()},t.prototype.setCurrentPageLabel=function(){var e=this.paginationProxy.getCurrentPage();this.lbCurrent.innerHTML=this.formatNumber(e+1)},t.prototype.formatNumber=function(e){var t=this.gridOptionsWrapper.getPaginationNumberFormatterFunc();return t?t({value:e}):u._.formatNumberCommas(e)},t.prototype.getTemplate=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=e("page","Page"),o=e("to","to"),i=e("of","of");return'<div class="ag-paging-panel ag-font-style">\n                <span ref="eSummaryPanel" class="ag-paging-row-summary-panel">\n                    <span ref="lbFirstRowOnPage"></span> '+o+' <span ref="lbLastRowOnPage"></span> '+i+' <span ref="lbRecordCount"></span>\n                </span>\n                <span class="ag-paging-page-summary-panel">\n                    <button class="ag-paging-button" ref="btFirst">'+e("first","First")+'</button>\n                    <button class="ag-paging-button" ref="btPrevious">'+e("previous","Previous")+"</button>\n                    "+t+' <span ref="lbCurrent"></span> '+i+' <span ref="lbTotal"></span>\n                    <button class="ag-paging-button" ref="btNext">'+e("next","Next")+'</button>\n                    <button class="ag-paging-button" ref="btLast">'+e("last","Last")+"</button>\n                </span>\n            </div>"},t.prototype.onBtNext=function(){this.paginationProxy.goToNextPage()},t.prototype.onBtPrevious=function(){this.paginationProxy.goToPreviousPage()},t.prototype.onBtFirst=function(){this.paginationProxy.goToFirstPage()},t.prototype.onBtLast=function(){this.paginationProxy.goToLastPage()},t.prototype.enableOrDisableButtons=function(){var e=this.paginationProxy.getCurrentPage(),t=this.paginationProxy.isLastPageFound(),o=this.paginationProxy.getTotalPages(),i=0===e;this.btPrevious.disabled=i,this.btFirst.disabled=i;var n=this.isZeroPagesToDisplay(),r=t&&e===o-1,s=r||n;this.btNext.disabled=s;var a=!t||n||e===o-1;this.btLast.disabled=a},t.prototype.updateRowLabels=function(){var e,t,o=this.paginationProxy.getCurrentPage(),i=this.paginationProxy.getPageSize(),n=this.paginationProxy.isLastPageFound(),r=this.paginationProxy.isLastPageFound()?this.paginationProxy.getTotalRowCount():null;this.isZeroPagesToDisplay()?(e=0,t=0):(e=i*o+1,t=e+i-1,n&&t>r&&(t=r)),this.lbFirstRowOnPage.innerHTML=this.formatNumber(e),this.lbLastRowOnPage.innerHTML=this.formatNumber(t)},t.prototype.isZeroPagesToDisplay=function(){var e=this.paginationProxy.isLastPageFound(),t=this.paginationProxy.getTotalPages();return e&&0===t},t.prototype.setTotalLabels=function(){var e=this.paginationProxy.isLastPageFound(),t=this.paginationProxy.getTotalPages(),o=this.paginationProxy.isLastPageFound()?this.paginationProxy.getTotalRowCount():null;if(e)this.lbTotal.innerHTML=this.formatNumber(t),this.lbRecordCount.innerHTML=this.formatNumber(o);else{var i=this.gridOptionsWrapper.getLocaleTextFunc()("more","more");this.lbTotal.innerHTML=i,this.lbRecordCount.innerHTML=i}},n([a.Autowired("gridOptionsWrapper"),r("design:type",l.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.Autowired("eventService"),r("design:type",c.EventService)],t.prototype,"eventService",void 0),n([a.Autowired("paginationProxy"),r("design:type",f.PaginationProxy)],t.prototype,"paginationProxy",void 0),n([a.Autowired("rowRenderer"),r("design:type",h.RowRenderer)],t.prototype,"rowRenderer",void 0),n([p.RefSelector("btFirst"),r("design:type",HTMLButtonElement)],t.prototype,"btFirst",void 0),n([p.RefSelector("btPrevious"),r("design:type",HTMLButtonElement)],t.prototype,"btPrevious",void 0),n([p.RefSelector("btNext"),r("design:type",HTMLButtonElement)],t.prototype,"btNext",void 0),n([p.RefSelector("btLast"),r("design:type",HTMLButtonElement)],t.prototype,"btLast",void 0),n([p.RefSelector("lbRecordCount"),r("design:type",Object)],t.prototype,"lbRecordCount",void 0),n([p.RefSelector("lbFirstRowOnPage"),r("design:type",Object)],t.prototype,"lbFirstRowOnPage",void 0),n([p.RefSelector("lbLastRowOnPage"),r("design:type",Object)],t.prototype,"lbLastRowOnPage",void 0),n([p.RefSelector("eSummaryPanel"),r("design:type",Object)],t.prototype,"eSummaryPanel",void 0),n([p.RefSelector("lbCurrent"),r("design:type",Object)],t.prototype,"lbCurrent",void 0),n([p.RefSelector("lbTotal"),r("design:type",Object)],t.prototype,"lbTotal",void 0),n([a.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(s.Component);t.PaginationComp=g},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(7),s=o(9),a=o(15),l=o(8),p=o(34),u=o(33),c=o(4),d=o(44),h=function(){function e(){}return e.prototype.getNextCellToFocus=function(e,t){switch(e){case s.Constants.KEY_UP:return this.getCellAbove(t);case s.Constants.KEY_DOWN:return this.getCellBelow(t);case s.Constants.KEY_RIGHT:return this.gridOptionsWrapper.isEnableRtl()?this.getCellToLeft(t):this.getCellToRight(t);case s.Constants.KEY_LEFT:return this.gridOptionsWrapper.isEnableRtl()?this.getCellToRight(t):this.getCellToLeft(t);default:console.log("ag-Grid: unknown key for navigation "+e)}},e.prototype.getCellToLeft=function(e){var t=this.columnController.getDisplayedColBefore(e.column);if(t){var o={rowIndex:e.rowIndex,column:t,floating:e.floating};return new u.GridCell(o)}return null},e.prototype.getCellToRight=function(e){var t=this.columnController.getDisplayedColAfter(e.column);if(t){var o={rowIndex:e.rowIndex,column:t,floating:e.floating};return new u.GridCell(o)}return null},e.prototype.getRowBelow=function(e){return this.isLastRowInContainer(e)?e.isFloatingBottom()?null:e.isNotFloating()?this.pinnedRowModel.isRowsToRender(s.Constants.PINNED_BOTTOM)?new p.GridRow(0,s.Constants.PINNED_BOTTOM):null:this.rowModel.isRowsToRender()?new p.GridRow(0,null):this.pinnedRowModel.isRowsToRender(s.Constants.PINNED_BOTTOM)?new p.GridRow(0,s.Constants.PINNED_BOTTOM):null:new p.GridRow(e.rowIndex+1,e.floating)},e.prototype.getCellBelow=function(e){var t=this.getRowBelow(e.getGridRow());if(t){var o={rowIndex:t.rowIndex,column:e.column,floating:t.floating};return new u.GridCell(o)}return null},e.prototype.isLastRowInContainer=function(e){if(e.isFloatingTop()){return this.pinnedRowModel.getPinnedTopRowData().length-1<=e.rowIndex}if(e.isFloatingBottom()){return this.pinnedRowModel.getPinnedBottomRowData().length-1<=e.rowIndex}return this.rowModel.getPageLastRow()<=e.rowIndex},e.prototype.getRowAbove=function(e){return 0===e.rowIndex?e.isFloatingTop()?null:e.isNotFloating()?this.pinnedRowModel.isRowsToRender(s.Constants.PINNED_TOP)?this.getLastFloatingTopRow():null:this.rowModel.isRowsToRender()?this.getLastBodyCell():this.pinnedRowModel.isRowsToRender(s.Constants.PINNED_TOP)?this.getLastFloatingTopRow():null:new p.GridRow(e.rowIndex-1,e.floating)},e.prototype.getCellAbove=function(e){var t=this.getRowAbove(e.getGridRow());if(t){var o={rowIndex:t.rowIndex,column:e.column,floating:t.floating};return new u.GridCell(o)}return null},e.prototype.getLastBodyCell=function(){var e=this.rowModel.getPageLastRow();return new p.GridRow(e,null)},e.prototype.getLastFloatingTopRow=function(){var e=this.pinnedRowModel.getPinnedTopRowData().length-1;return new p.GridRow(e,s.Constants.PINNED_TOP)},e.prototype.getNextTabbedCell=function(e,t){return t?this.getNextTabbedCellBackwards(e):this.getNextTabbedCellForwards(e)},e.prototype.getNextTabbedCellForwards=function(e){var t=this.columnController.getAllDisplayedColumns(),o=e.rowIndex,i=e.floating,n=this.columnController.getDisplayedColAfter(e.column);if(!n){n=t[0];var r=this.getRowBelow(e.getGridRow());if(l.Utils.missing(r))return;o=r.rowIndex,i=r.floating}var s={rowIndex:o,column:n,floating:i};return new u.GridCell(s)},e.prototype.getNextTabbedCellBackwards=function(e){var t=this.columnController.getAllDisplayedColumns(),o=e.rowIndex,i=e.floating,n=this.columnController.getDisplayedColBefore(e.column);if(!n){n=t[t.length-1];var r=this.getRowAbove(e.getGridRow());if(l.Utils.missing(r))return;o=r.rowIndex,i=r.floating}var s={rowIndex:o,column:n,floating:i};return new u.GridCell(s)},i([r.Autowired("columnController"),n("design:type",a.ColumnController)],e.prototype,"columnController",void 0),i([r.Autowired("rowModel"),n("design:type",Object)],e.prototype,"rowModel",void 0),i([r.Autowired("pinnedRowModel"),n("design:type",d.PinnedRowModel)],e.prototype,"pinnedRowModel",void 0),i([r.Autowired("gridOptionsWrapper"),n("design:type",c.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),e=i([r.Bean("cellNavigationService")],e)}();t.CellNavigationService=h},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(4),s=o(15),a=o(24),l=o(17),p=o(7),u=o(89),c=o(5),d=o(11),h=o(39),f=function(){function e(){}return e.prototype.init=function(){var e=this;this.eHeaderViewport=this.gridPanel.getHeaderViewport(),this.eRoot=this.gridPanel.getRoot(),this.eHeaderOverlay=this.gridPanel.getHeaderOverlay(),this.centerContainer=new u.HeaderContainer(this.gridPanel.getHeaderContainer(),this.gridPanel.getHeaderViewport(),this.eRoot,null),this.childContainers=[this.centerContainer],this.gridOptionsWrapper.isForPrint()||(this.pinnedLeftContainer=new u.HeaderContainer(this.gridPanel.getPinnedLeftHeader(),null,this.eRoot,l.Column.PINNED_LEFT),this.pinnedRightContainer=new u.HeaderContainer(this.gridPanel.getPinnedRightHeader(),null,this.eRoot,l.Column.PINNED_RIGHT),this.childContainers.push(this.pinnedLeftContainer),this.childContainers.push(this.pinnedRightContainer)),this.childContainers.forEach(function(t){return e.context.wireBean(t)}),this.eventService.addEventListener(d.Events.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.eventService.addEventListener(d.Events.EVENT_COLUMN_VALUE_CHANGED,this.refreshHeader.bind(this)),this.eventService.addEventListener(d.Events.EVENT_COLUMN_RESIZED,this.setPinnedColContainerWidth.bind(this)),this.eventService.addEventListener(d.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,this.setPinnedColContainerWidth.bind(this)),this.eventService.addEventListener(d.Events.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.columnController.isReady()&&this.refreshHeader()},e.prototype.onScrollVisibilityChanged=function(){this.setPinnedColContainerWidth()},e.prototype.forEachHeaderElement=function(e){this.childContainers.forEach(function(t){return t.forEachHeaderElement(e)})},e.prototype.destroy=function(){this.childContainers.forEach(function(e){return e.destroy()})},e.prototype.onGridColumnsChanged=function(){this.setHeight()},e.prototype.refreshHeader=function(){this.setHeight(),this.childContainers.forEach(function(e){return e.refresh()}),this.setPinnedColContainerWidth()},e.prototype.setHeight=function(){if(this.eHeaderOverlay){var e=this.gridOptionsWrapper.getHeaderHeight(),t=this.columnController.getHeaderRowCount();this.eHeaderOverlay.style.height=e+"px",this.eHeaderOverlay.style.top=(t-1)*e+"px"}},e.prototype.setPinnedColContainerWidth=function(){if(!this.gridOptionsWrapper.isForPrint()){var e=this.scrollVisibleService.getPinnedLeftWithScrollWidth(),t=this.scrollVisibleService.getPinnedRightWithScrollWidth();this.eHeaderViewport.style.marginLeft=e+"px",this.eHeaderViewport.style.marginRight=t+"px"}},i([p.Autowired("gridOptionsWrapper"),n("design:type",r.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([p.Autowired("columnController"),n("design:type",s.ColumnController)],e.prototype,"columnController",void 0),i([p.Autowired("gridPanel"),n("design:type",a.GridPanel)],e.prototype,"gridPanel",void 0),i([p.Autowired("context"),n("design:type",p.Context)],e.prototype,"context",void 0),i([p.Autowired("eventService"),n("design:type",c.EventService)],e.prototype,"eventService",void 0),i([p.Autowired("scrollVisibleService"),n("design:type",h.ScrollVisibleService)],e.prototype,"scrollVisibleService",void 0),i([p.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),i([p.PreDestroy,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"destroy",null),e=i([p.Bean("headerRenderer")],e)}();t.HeaderRenderer=f},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(8),s=o(4),a=o(7),l=o(90),p=o(15),u=o(24),c=o(5),d=o(11),h=o(92),f=o(101),g=o(17),y=o(39),v=function(){function e(e,t,o,i){this.headerRowComps=[],this.eContainer=e,this.eRoot=o,this.pinned=i,this.eViewport=t}return e.prototype.forEachHeaderElement=function(e){this.headerRowComps.forEach(function(t){return t.forEachHeaderElement(e)})},e.prototype.init=function(){this.setupDragAndDrop(),this.eventService.addEventListener(d.Events.EVENT_COLUMN_VALUE_CHANGED,this.onColumnValueChanged.bind(this)),this.eventService.addEventListener(d.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onColumnRowGroupChanged.bind(this)),this.eventService.addEventListener(d.Events.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.eventService.addEventListener(d.Events.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.eventService.addEventListener(d.Events.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.eventService.addEventListener(d.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this))},e.prototype.onColumnRowGroupChanged=function(){this.onGridColumnsChanged()},e.prototype.onColumnValueChanged=function(){this.onGridColumnsChanged()},e.prototype.onColumnResized=function(){this.setWidthIfPinnedContainer()},e.prototype.onDisplayedColumnsChanged=function(){this.setWidthIfPinnedContainer()},e.prototype.onScrollVisibilityChanged=function(){this.setWidthIfPinnedContainer()},e.prototype.setWidthIfPinnedContainer=function(){if(this.pinned===g.Column.PINNED_LEFT){var e=this.scrollVisibleService.getPinnedLeftWithScrollWidth();this.eContainer.style.width=e+"px"}else if(this.pinned===g.Column.PINNED_RIGHT){var t=this.scrollVisibleService.getPinnedRightWithScrollWidth();this.eContainer.style.width=t+"px"}},e.prototype.destroy=function(){this.removeHeaderRowComps()},e.prototype.onGridColumnsChanged=function(){this.removeHeaderRowComps(),this.createHeaderRowComps()},e.prototype.refresh=function(){this.onGridColumnsChanged()},e.prototype.setupDragAndDrop=function(){var e=this.eViewport?this.eViewport:this.eContainer,t=new f.BodyDropTarget(this.pinned,e);this.context.wireBean(t)},e.prototype.removeHeaderRowComps=function(){this.headerRowComps.forEach(function(e){e.destroy()}),this.headerRowComps.length=0,r.Utils.removeAllChildren(this.eContainer)},e.prototype.createHeaderRowComps=function(){for(var e=this.columnController.getHeaderRowCount(),t=0;t<e;t++){var o=t!==e-1,i=o?h.HeaderRowType.COLUMN_GROUP:h.HeaderRowType.COLUMN,n=new h.HeaderRowComp(t,i,this.pinned,this.eRoot,this.dropTarget);this.context.wireBean(n),this.headerRowComps.push(n),this.eContainer.appendChild(n.getHtmlElement())}if(this.gridOptionsWrapper.isFloatingFilter()&&!this.columnController.isPivotMode()){var n=new h.HeaderRowComp(e,h.HeaderRowType.FLOATING_FILTER,this.pinned,this.eRoot,this.dropTarget);this.context.wireBean(n),this.headerRowComps.push(n),this.eContainer.appendChild(n.getHtmlElement())}},i([a.Autowired("gridOptionsWrapper"),n("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([a.Autowired("context"),n("design:type",a.Context)],e.prototype,"context",void 0),i([a.Autowired("$scope"),n("design:type",Object)],e.prototype,"$scope",void 0),i([a.Autowired("dragAndDropService"),n("design:type",l.DragAndDropService)],e.prototype,"dragAndDropService",void 0),i([a.Autowired("columnController"),n("design:type",p.ColumnController)],e.prototype,"columnController",void 0),i([a.Autowired("gridPanel"),n("design:type",u.GridPanel)],e.prototype,"gridPanel",void 0),i([a.Autowired("eventService"),n("design:type",c.EventService)],e.prototype,"eventService",void 0),i([a.Autowired("scrollVisibleService"),n("design:type",y.ScrollVisibleService)],e.prototype,"scrollVisibleService",void 0),i([a.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),e}();t.HeaderContainer=v},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(o,i){t(o,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(6),a=o(7),l=o(8),p=o(4),u=o(26),c=o(15),d=o(91);!function(e){e[e.ToolPanel=0]="ToolPanel",e[e.HeaderCell=1]="HeaderCell"}(t.DragSourceType||(t.DragSourceType={}));var h;!function(e){e[e.Up=0]="Up",e[e.Down=1]="Down"}(h=t.VDirection||(t.VDirection={}));var f;!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(f=t.HDirection||(t.HDirection={}));var g=function(){function e(){this.dragSourceAndParamsList=[],this.dropTargets=[]}return t=e,e.prototype.init=function(){this.ePinnedIcon=l.Utils.createIcon("columnMovePin",this.gridOptionsWrapper,null),this.ePlusIcon=l.Utils.createIcon("columnMoveAdd",this.gridOptionsWrapper,null),this.eHiddenIcon=l.Utils.createIcon("columnMoveHide",this.gridOptionsWrapper,null),this.eMoveIcon=l.Utils.createIcon("columnMoveMove",this.gridOptionsWrapper,null),this.eLeftIcon=l.Utils.createIcon("columnMoveLeft",this.gridOptionsWrapper,null),this.eRightIcon=l.Utils.createIcon("columnMoveRight",this.gridOptionsWrapper,null),this.eGroupIcon=l.Utils.createIcon("columnMoveGroup",this.gridOptionsWrapper,null),this.eAggregateIcon=l.Utils.createIcon("columnMoveValue",this.gridOptionsWrapper,null),this.ePivotIcon=l.Utils.createIcon("columnMovePivot",this.gridOptionsWrapper,null),this.eDropNotAllowedIcon=l.Utils.createIcon("dropNotAllowed",this.gridOptionsWrapper,null)},e.prototype.setBeans=function(e){this.logger=e.create("OldToolPanelDragAndDropService")},e.prototype.addDragSource=function(e,t){void 0===t&&(t=!1);var o={eElement:e.eElement,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this)};this.dragSourceAndParamsList.push({params:o,dragSource:e}),this.dragService.addDragSource(o,t)},e.prototype.removeDragSource=function(e){var t=l.Utils.find(this.dragSourceAndParamsList,function(t){return t.dragSource===e});t&&(this.dragService.removeDragSource(t.params),l.Utils.removeFromArray(this.dragSourceAndParamsList,t))},e.prototype.destroy=function(){var e=this;this.dragSourceAndParamsList.forEach(function(t){e.dragService.removeDragSource(t.params)}),this.dragSourceAndParamsList.length=0},e.prototype.nudge=function(){this.dragging&&this.onDragging(this.eventLastTime,!0)},e.prototype.onDragStart=function(e,t){this.dragging=!0,this.dragSource=e,this.eventLastTime=t,this.dragItem=this.dragSource.dragItemCallback(),this.dragItem.columns.forEach(function(e){return e.setMoving(!0)}),this.lastDropTarget=this.dragSource.dragSourceDropTarget,this.createGhost()},e.prototype.onDragStop=function(e){if(this.eventLastTime=null,this.dragging=!1,this.dragItem.columns.forEach(function(e){return e.setMoving(!1)}),this.lastDropTarget&&this.lastDropTarget.onDragStop){var t=this.createDropTargetEvent(this.lastDropTarget,e,null,null,!1);this.lastDropTarget.onDragStop(t)}this.lastDropTarget=null,this.dragItem=null,this.removeGhost()},e.prototype.onDragging=function(e,t){var o=this.workOutHDirection(e),i=this.workOutVDirection(e);this.eventLastTime=e,this.positionGhost(e);var n=l.Utils.find(this.dropTargets,this.isMouseOnDropTarget.bind(this,e));if(n!==this.lastDropTarget)this.leaveLastTargetIfExists(e,o,i,t),this.enterDragTargetIfExists(n,e,o,i,t),this.lastDropTarget=n;else if(n){var r=this.createDropTargetEvent(n,e,o,i,t);n.onDragging(r)}},e.prototype.enterDragTargetIfExists=function(e,t,o,i,n){if(e){var r=this.createDropTargetEvent(e,t,o,i,n);e.onDragEnter(r),this.setGhostIcon(e.getIconName?e.getIconName():null)}},e.prototype.leaveLastTargetIfExists=function(e,t,o,i){if(this.lastDropTarget){var n=this.createDropTargetEvent(this.lastDropTarget,e,t,o,i);this.lastDropTarget.onDragLeave(n),this.setGhostIcon(null)}},e.prototype.getAllContainersFromDropTarget=function(e){var t=[e.getContainer()],o=e.getSecondaryContainers?e.getSecondaryContainers():null;return o&&(t=t.concat(o)),t},e.prototype.isMouseOnDropTarget=function(e,t){var o=this.getAllContainersFromDropTarget(t),i=!1;return o.forEach(function(t){if(t){var o=t.getBoundingClientRect();if(0!==o.width&&0!==o.height){var n=e.clientX>=o.left&&e.clientX<=o.right,r=e.clientY>=o.top&&e.clientY<=o.bottom;n&&r&&(i=!0)}}}),i},e.prototype.addDropTarget=function(e){this.dropTargets.push(e)},e.prototype.workOutHDirection=function(e){return this.eventLastTime.clientX>e.clientX?f.Left:this.eventLastTime.clientX<e.clientX?f.Right:null},e.prototype.workOutVDirection=function(e){return this.eventLastTime.clientY>e.clientY?h.Up:this.eventLastTime.clientY<e.clientY?h.Down:null},e.prototype.createDropTargetEvent=function(e,t,o,i,n){var r=e.getContainer().getBoundingClientRect();return{event:t,x:t.clientX-r.left,y:t.clientY-r.top,vDirection:i,hDirection:o,dragSource:this.dragSource,fromNudge:n,dragItem:this.dragItem}},e.prototype.positionGhost=function(e){var t=this.eGhost.getBoundingClientRect(),o=t.height,i=l.Utils.getBodyWidth()-2,n=l.Utils.getBodyHeight()-2,r=e.pageY-o/2,s=e.pageX-30,a=this.gridOptionsWrapper.getDocument(),p=window.pageYOffset||a.documentElement.scrollTop,u=window.pageXOffset||a.documentElement.scrollLeft;i>0&&s+this.eGhost.clientWidth>i+u&&(s=i+u-this.eGhost.clientWidth),s<0&&(s=0),n>0&&r+this.eGhost.clientHeight>n+p&&(r=n+p-this.eGhost.clientHeight),r<0&&(r=0),this.eGhost.style.left=s+"px",this.eGhost.style.top=r+"px"},e.prototype.removeGhost=function(){this.eGhost&&this.eGhostParent&&this.eGhostParent.removeChild(this.eGhost),this.eGhost=null},e.prototype.createGhost=function(){this.eGhost=l.Utils.loadTemplate(t.GHOST_TEMPLATE),this.eGhost.classList.add(this.environment.getTheme()),this.eGhostIcon=this.eGhost.querySelector(".ag-dnd-ghost-icon"),this.setGhostIcon(null),this.eGhost.querySelector(".ag-dnd-ghost-label").innerHTML=this.dragSource.dragItemName,this.eGhost.style.height="25px",this.eGhost.style.top="20px",this.eGhost.style.left="20px";var e=this.gridOptionsWrapper.getDocument();this.eGhostParent=e.querySelector("body"),this.eGhostParent?this.eGhostParent.appendChild(this.eGhost):console.warn("ag-Grid: could not find document body, it is needed for dragging columns")},e.prototype.setGhostIcon=function(e,o){void 0===o&&(o=!1),l.Utils.removeAllChildren(this.eGhostIcon);var i;switch(e){case t.ICON_ADD:i=this.ePlusIcon;break;case t.ICON_PINNED:i=this.ePinnedIcon;break;case t.ICON_MOVE:i=this.eMoveIcon;break;case t.ICON_LEFT:i=this.eLeftIcon;break;case t.ICON_RIGHT:i=this.eRightIcon;break;case t.ICON_GROUP:i=this.eGroupIcon;break;case t.ICON_AGGREGATE:i=this.eAggregateIcon;break;case t.ICON_PIVOT:i=this.ePivotIcon;break;case t.ICON_NOT_ALLOWED:i=this.eDropNotAllowedIcon;break;default:i=this.eHiddenIcon}this.eGhostIcon.appendChild(i),l.Utils.addOrRemoveCssClass(this.eGhostIcon,"ag-shake-left-to-right",o)},e.ICON_PINNED="pinned",e.ICON_ADD="add",e.ICON_MOVE="move",e.ICON_LEFT="left",e.ICON_RIGHT="right",e.ICON_GROUP="group",e.ICON_AGGREGATE="aggregate",e.ICON_PIVOT="pivot",e.ICON_NOT_ALLOWED="notAllowed",e.GHOST_TEMPLATE='<div class="ag-dnd-ghost">  <span class="ag-dnd-ghost-icon ag-shake-left-to-right"></span>  <div class="ag-dnd-ghost-label">  </div></div>',i([a.Autowired("gridOptionsWrapper"),n("design:type",p.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([a.Autowired("dragService"),n("design:type",u.DragService)],e.prototype,"dragService",void 0),i([a.Autowired("environment"),n("design:type",d.Environment)],e.prototype,"environment",void 0),i([a.Autowired("columnController"),n("design:type",c.ColumnController)],e.prototype,"columnController",void 0),i([a.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),i([r(0,a.Qualifier("loggerFactory")),n("design:type",Function),n("design:paramtypes",[s.LoggerFactory]),n("design:returntype",void 0)],e.prototype,"setBeans",null),i([a.PreDestroy,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"destroy",null),e=t=i([a.Bean("dragAndDropService")],e);var t}();t.DragAndDropService=g},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(7),s=["fresh","dark","blue","bootstrap","material","theme-material"],a=new RegExp("ag-("+s.join("|")+")"),l=function(){function e(){}return e.prototype.getTheme=function(){for(var e,t=this.eGridDiv;t!=document.documentElement&&null==e&&(e=t.className.match(a),null!=(t=t.parentElement)););return e?e[0]:"ag-fresh"},i([r.Autowired("eGridDiv"),n("design:type",HTMLElement)],e.prototype,"eGridDiv",void 0),e=i([r.Bean("environment")],e)}();t.Environment=l},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),n=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s,a=o(35),l=o(7),p=o(4),u=o(15),c=o(17),d=o(93),h=o(5),f=o(11),g=o(8),y=o(97),v=o(100),m=o(51),C=o(57);!function(e){e[e.COLUMN_GROUP=0]="COLUMN_GROUP",e[e.COLUMN=1]="COLUMN",e[e.FLOATING_FILTER=2]="FLOATING_FILTER"}(s=t.HeaderRowType||(t.HeaderRowType={}));var E=function(e){function t(t,o,i,n,r){var s=e.call(this,'<div class="ag-header-row" role="presentation"/>')||this;return s.headerComps={},s.dept=t,s.type=o,s.pinned=i,s.eRoot=n,s.dropTarget=r,s}return i(t,e),t.prototype.forEachHeaderElement=function(e){var t=this;Object.keys(this.headerComps).forEach(function(o){var i=t.headerComps[o];e(i)})},t.prototype.destroy=function(){var t=Object.keys(this.headerComps);this.removeAndDestroyChildComponents(t),e.prototype.destroy.call(this)},t.prototype.removeAndDestroyChildComponents=function(e){var t=this;e.forEach(function(e){var o=t.headerComps[e];t.getHtmlElement().removeChild(g.Utils.assertHtmlElement(o.getGui())),o.destroy&&o.destroy(),delete t.headerComps[e]})},t.prototype.onRowHeightChanged=function(){var e,t,o=this.columnController.getHeaderRowCount(),i=[],n=0;this.columnController.isPivotMode()?(n=0,e=this.gridOptionsWrapper.getPivotGroupHeaderHeight(),t=this.gridOptionsWrapper.getPivotHeaderHeight()):(this.gridOptionsWrapper.isFloatingFilter()&&o++,n=this.gridOptionsWrapper.isFloatingFilter()?1:0,e=this.gridOptionsWrapper.getGroupHeaderHeight(),t=this.gridOptionsWrapper.getHeaderHeight());for(var r=1+n,s=o-r,a=0;a<s;a++)i.push(e);i.push(t);for(var a=0;a<n;a++)i.push(this.gridOptionsWrapper.getFloatingFiltersHeight());for(var l=0,a=0;a<this.dept;a++)l+=i[a];this.getHtmlElement().style.top=l+"px",this.getHtmlElement().style.height=i[this.dept]+"px"},t.prototype.init=function(){this.onRowHeightChanged(),this.onVirtualColumnsChanged(),this.setWidth(),this.addDestroyableEventListener(this.gridOptionsWrapper,p.GridOptionsWrapper.PROP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,p.GridOptionsWrapper.PROP_PIVOT_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,p.GridOptionsWrapper.PROP_GROUP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,p.GridOptionsWrapper.PROP_PIVOT_GROUP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,p.GridOptionsWrapper.PROP_FLOATING_FILTERS_HEIGHT,this.onRowHeightChanged.bind(this)),this.addDestroyableEventListener(this.eventService,f.Events.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addDestroyableEventListener(this.eventService,f.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addDestroyableEventListener(this.eventService,f.Events.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addDestroyableEventListener(this.eventService,f.Events.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this))},t.prototype.onColumnResized=function(){this.setWidth()},t.prototype.setWidth=function(){var e=this.columnController.getContainerWidth(this.pinned)+"px";this.getHtmlElement().style.width=e},t.prototype.onGridColumnsChanged=function(){this.removeAndDestroyAllChildComponents()},t.prototype.removeAndDestroyAllChildComponents=function(){var e=Object.keys(this.headerComps);this.removeAndDestroyChildComponents(e)},t.prototype.onDisplayedColumnsChanged=function(){this.onVirtualColumnsChanged(),this.setWidth()},t.prototype.onVirtualColumnsChanged=function(){var e,t=this,o=Object.keys(this.headerComps),i=this.columnController.getVirtualHeaderGroupRow(this.pinned,this.type==s.FLOATING_FILTER?this.dept-1:this.dept),n=this.gridOptionsWrapper.isEnsureDomOrder();i.forEach(function(i){if(!i.isEmptyGroup()){var r,s,a=i.getUniqueId(),l=t.getHtmlElement(),p=o.indexOf(a)>=0;p?(g.Utils.removeFromArray(o,a),r=t.headerComps[a],s=g.Utils.assertHtmlElement(r.getGui()),n&&g.Utils.ensureDomOrder(l,s,e)):(r=t.createHeaderComp(i),t.headerComps[a]=r,s=g.Utils.assertHtmlElement(r.getGui()),n?g.Utils.insertWithDomOrder(l,s,e):l.appendChild(s)),e=s}}),this.removeAndDestroyChildComponents(o)},t.prototype.isUsingOldHeaderRenderer=function(e){var t=e.getColDef();return g.Utils.anyExists([this.gridOptionsWrapper.getHeaderCellTemplateFunc(),this.gridOptionsWrapper.getHeaderCellTemplate(),t.headerCellTemplate,t.headerCellRenderer,this.gridOptionsWrapper.getHeaderCellRenderer()])},t.prototype.createHeaderComp=function(e){var t;switch(this.type){case s.COLUMN:t=this.isUsingOldHeaderRenderer(e)?new d.RenderedHeaderCell(e,this.eRoot,this.dropTarget,this.pinned):new y.HeaderWrapperComp(e,this.eRoot,this.dropTarget,this.pinned);break;case s.COLUMN_GROUP:t=new v.HeaderGroupWrapperComp(e,this.eRoot,this.dropTarget,this.pinned);break;case s.FLOATING_FILTER:var o=e;t=this.createFloatingFilterWrapper(o)}return this.context.wireBean(t),t},t.prototype.createFloatingFilterWrapper=function(e){var t=this,o=this.createFloatingFilterParams(e),i=this.componentRecipes.newFloatingFilterWrapperComponent(e,o);if(this.addDestroyableEventListener(e,c.Column.EVENT_FILTER_CHANGED,function(){var o=t.filterManager.getFilterComponent(e);i.onParentModelChanged(o.getModel())}),this.filterManager.cachedFilter(e)){var n=this.filterManager.getFilterComponent(e);i.onParentModelChanged(n.getModel())}return i},t.prototype.createFloatingFilterParams=function(e){var t=this;return{column:e,currentParentModel:function(){var o=t.filterManager.getFilterComponent(e);return o.getNullableModel?o.getNullableModel():o.getModel()},onFloatingFilterChanged:function(o){var i=t.filterManager.getFilterComponent(e);return i.onFloatingFilterChanged?i.onFloatingFilterChanged(o):(i.setModel(o),t.filterManager.onFilterChanged(),!0)},suppressFilterButton:!1}},n([l.Autowired("gridOptionsWrapper"),r("design:type",p.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([l.Autowired("columnController"),r("design:type",u.ColumnController)],t.prototype,"columnController",void 0),n([l.Autowired("context"),r("design:type",l.Context)],t.prototype,"context",void 0),n([l.Autowired("eventService"),r("design:type",h.EventService)],t.prototype,"eventService",void 0),n([l.Autowired("filterManager"),r("design:type",m.FilterManager)],t.prototype,"filterManager",void 0),n([l.Autowired("componentRecipes"),r("design:type",C.ComponentRecipes)],t.prototype,"componentRecipes",void 0),n([l.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],t.prototype,"init",null),t}(a.Component);t.HeaderRowComp=E},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),n=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=o(8),a=o(17),l=o(51),p=o(15),u=o(94),c=o(4),d=o(95),h=o(50),f=o(7),g=o(96),y=o(90),v=o(62),m=o(67),C=o(63),E=o(35),w=o(68),R=function(e){function t(t,o,i,n){var r=e.call(this)||this;return r.column=t,r.eRoot=o,r.dragSourceDropTarget=i,r.pinned=n,r}return i(t,e),t.prototype.getColumn=function(){return this.column},t.prototype.init=function(){var e=this.headerTemplateLoader.createHeaderElement(this.column);this.setHtmlElementNoHydrate(e),this.createScope(),this.addAttributes(),g.CssClassApplier.addHeaderClassesFromColDef(this.column.getColDef(),e,this.gridOptionsWrapper,this.column,null),s.Utils.addCssClass(e,"ag-header-cell");var t=e.querySelector("#agHeaderCellLabel");this.displayName=this.columnController.getDisplayNameForColumn(this.column,"header",!0),this.setupMovingCss(),this.setupTooltip(),this.setupResize(),this.setupTap(),this.setupMove(t),this.setupMenu(),this.setupSort(t),this.setupFilterIcon(),this.setupText(),this.setupWidth();var o=new m.SetLeftFeature(this.column,e,this.beans);o.init(),this.addDestroyFunc(o.destroy.bind(o))},t.prototype.setupTooltip=function(){var e=this.column.getColDef();e.headerTooltip&&(this.getHtmlElement().title=e.headerTooltip)},t.prototype.setupText=function(){var e,t=this.column.getColDef();t.headerCellRenderer?e=t.headerCellRenderer:this.gridOptionsWrapper.getHeaderCellRenderer()&&(e=this.gridOptionsWrapper.getHeaderCellRenderer());var o=this.queryForHtmlElement("#agText");o&&(e?this.useRenderer(this.displayName,e,o):(o.innerHTML=this.displayName,s.Utils.addCssClass(o,"ag-header-cell-text")))},t.prototype.setupFilterIcon=function(){this.eFilterIcon=this.queryForHtmlElement("#agFilter"),this.eFilterIcon&&(this.addDestroyableEventListener(this.column,a.Column.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.onFilterChanged())},t.prototype.onFilterChanged=function(){var e=this.column.isFilterActive();s.Utils.addOrRemoveCssClass(this.getHtmlElement(),"ag-header-cell-filtered",e),s.Utils.addOrRemoveCssClass(this.eFilterIcon,"ag-hidden",!e)},t.prototype.setupWidth=function(){this.addDestroyableEventListener(this.column,a.Column.EVENT_WIDTH_CHANGED,this.onColumnWidthChanged.bind(this)),this.onColumnWidthChanged()},t.prototype.onColumnWidthChanged=function(){this.getHtmlElement().style.width=this.column.getActualWidth()+"px"},t.prototype.createScope=function(){var e=this;this.gridOptionsWrapper.isAngularCompileHeaders()&&(this.childScope=this.$scope.$new(),this.childScope.colDef=this.column.getColDef(),this.childScope.colDefWrapper=this.column,this.childScope.context=this.gridOptionsWrapper.getContext(),this.addDestroyFunc(function(){e.childScope.$destroy()}))},t.prototype.addAttributes=function(){this.getHtmlElement().setAttribute("colId",this.column.getColId())},t.prototype.setupMenu=function(){var e=this,t=this.queryForHtmlElement("#agMenu");if(t){if(!this.menuFactory.isMenuEnabled(this.column)||this.column.getColDef().suppressMenu)return void s.Utils.removeFromParent(t);t.addEventListener("click",function(){return e.showMenu(t)}),this.gridOptionsWrapper.isSuppressMenuHide()||(t.style.opacity="0",this.addGuiEventListener("mouseover",function(){t.style.opacity="1"}),this.addGuiEventListener("mouseout",function(){t.style.opacity="0"}));var o=t.style;o.transition="opacity 0.2s, border 0.2s",o["-webkit-transition"]="opacity 0.2s, border 0.2s"}},t.prototype.showMenu=function(e){this.menuFactory.showMenuAfterButtonClick(this.column,e)},t.prototype.setupMovingCss=function(){this.addDestroyableEventListener(this.column,a.Column.EVENT_MOVING_CHANGED,this.onColumnMovingChanged.bind(this)),this.onColumnMovingChanged()},t.prototype.onColumnMovingChanged=function(){this.column.isMoving()?s.Utils.addCssClass(this.getHtmlElement(),"ag-header-cell-moving"):s.Utils.removeCssClass(this.getHtmlElement(),"ag-header-cell-moving")},t.prototype.setupMove=function(e){var t=this;if(!(this.gridOptionsWrapper.isSuppressMovableColumns()||this.column.getColDef().suppressMovable||this.gridOptionsWrapper.isForPrint())&&e){var o={type:y.DragSourceType.HeaderCell,eElement:e,dragItemCallback:function(){return t.createDragItem()},dragItemName:this.displayName,dragSourceDropTarget:this.dragSourceDropTarget};this.dragAndDropService.addDragSource(o,!0),this.addDestroyFunc(function(){return t.dragAndDropService.removeDragSource(o)})}},t.prototype.createDragItem=function(){var e={};return e[this.column.getId()]=this.column.isVisible(),{columns:[this.column],visibleState:e}},t.prototype.setupTap=function(){var e=this;if(!this.gridOptionsWrapper.isSuppressTouch()){var t=new C.TouchListener(this.getHtmlElement()),o=function(t){e.sortController.progressSort(e.column,!1)},i=function(t){e.gridOptionsWrapper.getApi().showColumnMenuAfterMouseClick(e.column,t.touchStart)};this.addDestroyableEventListener(t,C.TouchListener.EVENT_TAP,o),this.addDestroyableEventListener(t,C.TouchListener.EVENT_LONG_TAP,i),this.addDestroyFunc(function(){return t.destroy()})}},t.prototype.setupResize=function(){var e=this,t=this.column.getColDef(),o=this.queryForHtmlElement("#agResizeBar");if(o){if(!(this.gridOptionsWrapper.isEnableColResize()&&!t.suppressResize))return void s.Utils.removeFromParent(o);this.horizontalDragService.addDragHandling({eDraggableElement:o,eBody:this.eRoot,cursor:"col-resize",startAfterPixels:0,onDragStart:this.onDragStart.bind(this),onDragging:this.onDragging.bind(this)});!this.gridOptionsWrapper.isSuppressAutoSize()&&!t.suppressAutoSize&&this.addDestroyableEventListener(o,"dblclick",function(){e.columnController.autoSizeColumn(e.column)})}},t.prototype.useRenderer=function(e,t,o){var i,n={colDef:this.column.getColDef(),$scope:this.childScope,context:this.gridOptionsWrapper.getContext(),value:e,api:this.gridOptionsWrapper.getApi(),eHeaderCell:this.getGui()},r=t(n);if(s.Utils.isNodeOrElement(r))i=r;else{var a=document.createElement("span");a.innerHTML=r,i=a}if(this.gridOptionsWrapper.isAngularCompileHeaders()){var l=this.$compile(i)(this.childScope)[0];o.appendChild(l)}else o.appendChild(i)},t.prototype.setupSort=function(e){var t=this,o=this.gridOptionsWrapper.isEnableSorting()&&!this.column.getColDef().suppressSorting,i=this.getHtmlElement();if(!o)return s.Utils.removeFromParent(i.querySelector("#agSortAsc")),s.Utils.removeFromParent(i.querySelector("#agSortDesc")),void s.Utils.removeFromParent(i.querySelector("#agNoSort"));s.Utils.addCssClass(i,"ag-header-cell-sortable"),e&&e.addEventListener("click",function(e){t.sortController.progressSort(t.column,e.shiftKey)}),this.eSortAsc=this.queryForHtmlElement("#agSortAsc"),this.eSortDesc=this.queryForHtmlElement("#agSortDesc"),this.eSortNone=this.queryForHtmlElement("#agNoSort"),this.addDestroyableEventListener(this.column,a.Column.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.onSortChanged()},t.prototype.onSortChanged=function(){if(s.Utils.addOrRemoveCssClass(this.getHtmlElement(),"ag-header-cell-sorted-asc",this.column.isSortAscending()),s.Utils.addOrRemoveCssClass(this.getHtmlElement(),"ag-header-cell-sorted-desc",this.column.isSortDescending()),s.Utils.addOrRemoveCssClass(this.getHtmlElement(),"ag-header-cell-sorted-none",this.column.isSortNone()),this.eSortAsc&&s.Utils.addOrRemoveCssClass(this.eSortAsc,"ag-hidden",!this.column.isSortAscending()),this.eSortDesc&&s.Utils.addOrRemoveCssClass(this.eSortDesc,"ag-hidden",!this.column.isSortDescending()),this.eSortNone){var e=!this.column.getColDef().unSortIcon&&!this.gridOptionsWrapper.isUnSortIcon();s.Utils.addOrRemoveCssClass(this.eSortNone,"ag-hidden",e||!this.column.isSortNone())}},t.prototype.onDragStart=function(){this.startWidth=this.column.getActualWidth()},t.prototype.normaliseDragChange=function(e){var t=e;return this.gridOptionsWrapper.isEnableRtl()?this.pinned!==a.Column.PINNED_LEFT&&(t*=-1):this.pinned===a.Column.PINNED_RIGHT&&(t*=-1),t},t.prototype.onDragging=function(e,t){var o=this.normaliseDragChange(e),i=this.startWidth+o;this.columnController.setColumnWidth(this.column,i,t)},n([f.Autowired("context"),r("design:type",f.Context)],t.prototype,"context",void 0),n([f.Autowired("filterManager"),r("design:type",l.FilterManager)],t.prototype,"filterManager",void 0),n([f.Autowired("columnController"),r("design:type",p.ColumnController)],t.prototype,"columnController",void 0),n([f.Autowired("$compile"),r("design:type",Object)],t.prototype,"$compile",void 0),n([f.Autowired("gridCore"),r("design:type",h.GridCore)],t.prototype,"gridCore",void 0),n([f.Autowired("headerTemplateLoader"),r("design:type",u.HeaderTemplateLoader)],t.prototype,"headerTemplateLoader",void 0),n([f.Autowired("horizontalDragService"),r("design:type",d.HorizontalDragService)],t.prototype,"horizontalDragService",void 0),n([f.Autowired("menuFactory"),r("design:type",Object)],t.prototype,"menuFactory",void 0),n([f.Autowired("gridOptionsWrapper"),r("design:type",c.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([f.Autowired("dragAndDropService"),r("design:type",y.DragAndDropService)],t.prototype,"dragAndDropService",void 0),n([f.Autowired("sortController"),r("design:type",v.SortController)],t.prototype,"sortController",void 0),n([f.Autowired("$scope"),r("design:type",Object)],t.prototype,"$scope",void 0),n([f.Autowired("beans"),r("design:type",w.Beans)],t.prototype,"beans",void 0),n([f.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],t.prototype,"init",null),t}(E.Component);t.RenderedHeaderCell=R},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(8),s=o(4),a=o(7),l=function(){function e(){}return t=e,e.prototype.createHeaderElement=function(e){var t={column:e,colDef:e.getColDef,context:this.gridOptionsWrapper.getContext(),api:this.gridOptionsWrapper.getApi()},o=e.getColDef().headerCellTemplate;if("function"==typeof o){o=o(t)}if(!o&&this.gridOptionsWrapper.getHeaderCellTemplate()&&(o=this.gridOptionsWrapper.getHeaderCellTemplate()),!o&&this.gridOptionsWrapper.getHeaderCellTemplateFunc()){o=this.gridOptionsWrapper.getHeaderCellTemplateFunc()(t)}o||(o=this.createDefaultHeaderElement(e));var i;return"string"==typeof o?i=r.Utils.loadTemplate(o):r.Utils.isNodeOrElement(o)?i=o:console.error("ag-Grid: header template must be a string or an HTML element"),i},e.prototype.createDefaultHeaderElement=function(e){var o=r.Utils.loadTemplate(t.HEADER_CELL_TEMPLATE);return this.addInIcon(o,"sortAscending","#agSortAsc",e),this.addInIcon(o,"sortDescending","#agSortDesc",e),this.addInIcon(o,"sortUnSort","#agNoSort",e),this.addInIcon(o,"menu","#agMenu",e),this.addInIcon(o,"filter","#agFilter",e),o},e.prototype.addInIcon=function(e,t,o,i){var n=r.Utils.createIconNoSpan(t,this.gridOptionsWrapper,i);e.querySelector(o).appendChild(n)},e.HEADER_CELL_TEMPLATE='<div class="ag-header-cell">  <div id="agResizeBar" class="ag-header-cell-resize"></div>  <span id="agMenu" class="ag-header-icon ag-header-cell-menu-button"></span>  <div id="agHeaderCellLabel" class="ag-header-cell-label">    <span id="agSortAsc" class="ag-header-icon ag-sort-ascending-icon"></span>    <span id="agSortDesc" class="ag-header-icon ag-sort-descending-icon"></span>    <span id="agNoSort" class="ag-header-icon ag-sort-none-icon"></span>    <span id="agFilter" class="ag-header-icon ag-filter-icon"></span>    <span id="agText" class="ag-header-cell-text"></span>  </div></div>',i([a.Autowired("gridOptionsWrapper"),n("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),e=t=i([a.Bean("headerTemplateLoader")],e);var t}();t.HeaderTemplateLoader=l},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(4),s=o(7),a=function(){function e(){}return e.prototype.addDragHandling=function(e){var t=this;e.eDraggableElement.addEventListener("mousedown",function(o){var i=t.gridOptionsWrapper.getDocument(),n=i.querySelector("body");new l(e,o,n)})},i([s.Autowired("gridOptionsWrapper"),n("design:type",r.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),e=i([s.Bean("horizontalDragService")],e)}();t.HorizontalDragService=a;var l=function(){function e(e,t,o){this.mouseMove=this.onMouseMove.bind(this),this.mouseUp=this.onMouseUp.bind(this),this.mouseLeave=this.onMouseLeave.bind(this),this.lastDelta=0,this.params=e,this.eDragParent=o,this.dragStartX=t.clientX,this.startEvent=t,this.eDragParent.addEventListener("mousemove",this.mouseMove),this.eDragParent.addEventListener("mouseup",this.mouseUp),this.eDragParent.addEventListener("mouseleave",this.mouseLeave),this.draggingStarted=!1,"number"==typeof e.startAfterPixels&&e.startAfterPixels>0||this.startDragging()}return e.prototype.startDragging=function(){this.draggingStarted=!0,this.oldBodyCursor=this.params.eBody.style.cursor,this.oldParentCursor=this.eDragParent.style.cursor,this.oldMsUserSelect=this.eDragParent.style.msUserSelect,this.oldWebkitUserSelect=this.eDragParent.style.webkitUserSelect,this.params.eBody.style.cursor=this.params.cursor,this.eDragParent.style.cursor=this.params.cursor,this.eDragParent.style.msUserSelect="none",this.eDragParent.style.webkitUserSelect="none",this.params.onDragStart(this.startEvent)},e.prototype.onMouseMove=function(e){var t=e.clientX;if(this.lastDelta=t-this.dragStartX,!this.draggingStarted){Math.abs(this.lastDelta)>=this.params.startAfterPixels&&this.startDragging()}this.draggingStarted&&this.params.onDragging(this.lastDelta,!1)},e.prototype.onMouseUp=function(){this.stopDragging()},e.prototype.onMouseLeave=function(){this.stopDragging()},e.prototype.stopDragging=function(){this.draggingStarted&&(this.params.eBody.style.cursor=this.oldBodyCursor,this.eDragParent.style.cursor=this.oldParentCursor,this.eDragParent.style.msUserSelect=this.oldMsUserSelect,this.eDragParent.style.webkitUserSelect=this.oldWebkitUserSelect,this.params.onDragging(this.lastDelta,!0)),this.eDragParent.removeEventListener("mousemove",this.mouseMove),this.eDragParent.removeEventListener("mouseup",this.mouseUp),this.eDragParent.removeEventListener("mouseleave",this.mouseLeave)},e}()},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(8),n=function(){function e(){}return e.addHeaderClassesFromColDef=function(e,t,o,n,r){i.Utils.missing(e)||this.addColumnClassesFromCollDef(e.headerClass,e,t,o,n,r)},e.addToolPanelClassesFromColDef=function(e,t,o,n,r){i.Utils.missing(e)||this.addColumnClassesFromCollDef(e.toolPanelClass,e,t,o,n,r)},e.addColumnClassesFromCollDef=function(e,t,o,n,r,s){if(!i.Utils.missing(e)){var a;if("function"==typeof e){a=e({colDef:t,column:r,columnGroup:s,context:n.getContext(),api:n.getApi()})}else a=e;"string"==typeof a?i.Utils.addCssClass(o,a):Array.isArray(a)&&a.forEach(function(e){i.Utils.addCssClass(o,e)})}},e}();t.CssClassApplier=n},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),n=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=o(35),a=o(7),l=o(17),p=o(8),u=o(90),c=o(15),d=o(95),h=o(4),f=o(96),g=o(67),y=o(12),v=o(62),m=o(5),C=o(57),E=o(98),w=o(48),R=o(99),_=o(11),O=o(83),A=o(68),S=function(e){function t(o,i,n,r){var s=e.call(this,t.TEMPLATE)||this;return s.column=o,s.eRoot=i,s.dragSourceDropTarget=n,s.pinned=r,s}return i(t,e),t.prototype.getColumn=function(){return this.column},t.prototype.init=function(){this.instantiate(this.context);var e=this.columnController.getDisplayNameForColumn(this.column,"header",!0),t=this.gridOptionsWrapper.isEnableSorting()&&!this.column.getColDef().suppressSorting,o=this.menuFactory.isMenuEnabled(this.column)&&!this.column.getColDef().suppressMenu,i=this.appendHeaderComp(e,t,o);this.setupWidth(),this.setupMovingCss(),this.setupTooltip(),this.setupResize(),this.setupMenuClass(),this.setupMove(p.Utils.ensureElement(i.getGui()),e),this.setupSortableClass(t),this.addColumnHoverListener(),this.addDestroyableEventListener(this.column,l.Column.EVENT_FILTER_ACTIVE_CHANGED,this.onFilterChanged.bind(this)),this.onFilterChanged(),this.addFeature(this.context,new R.SelectAllFeature(this.cbSelectAll,this.column));var n=new g.SetLeftFeature(this.column,this.getHtmlElement(),this.beans);n.init(),this.addDestroyFunc(n.destroy.bind(n)),this.addAttributes(),f.CssClassApplier.addHeaderClassesFromColDef(this.column.getColDef(),this.getHtmlElement(),this.gridOptionsWrapper,this.column,null)},t.prototype.addColumnHoverListener=function(){this.addDestroyableEventListener(this.eventService,_.Events.EVENT_COLUMN_HOVER_CHANGED,this.onColumnHover.bind(this)),this.onColumnHover()},t.prototype.onColumnHover=function(){var e=this.columnHoverService.isHovered(this.column);p.Utils.addOrRemoveCssClass(this.getHtmlElement(),"ag-column-hover",e)},t.prototype.setupSortableClass=function(e){if(e){var t=this.getHtmlElement();p.Utils.addCssClass(t,"ag-header-cell-sortable")}},t.prototype.onFilterChanged=function(){var e=this.column.isFilterActive();p.Utils.addOrRemoveCssClass(this.getHtmlElement(),"ag-header-cell-filtered",e)},t.prototype.appendHeaderComp=function(e,t,o){var i=this,n={column:this.column,displayName:e,enableSorting:t,enableMenu:o,showColumnMenu:function(e){i.gridApi.showColumnMenuAfterButtonClick(i.column,e)},progressSort:function(e){i.sortController.progressSort(i.column,!!e)},setSort:function(e,t){i.sortController.setSortForColumn(i.column,e,!!t)},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext()},r=this.componentRecipes.newHeaderComponent(n);return this.appendChild(r),r},t.prototype.onColumnMovingChanged=function(){this.column.isMoving()?p.Utils.addCssClass(this.getHtmlElement(),"ag-header-cell-moving"):p.Utils.removeCssClass(this.getHtmlElement(),"ag-header-cell-moving")},t.prototype.setupMove=function(e,t){var o=this;if(!(this.gridOptionsWrapper.isSuppressMovableColumns()||this.column.getColDef().suppressMovable||this.gridOptionsWrapper.isForPrint())&&e){var i={type:u.DragSourceType.HeaderCell,eElement:e,dragItemCallback:function(){return o.createDragItem()},dragItemName:t,dragSourceDropTarget:this.dragSourceDropTarget};this.dragAndDropService.addDragSource(i,!0),this.addDestroyFunc(function(){return o.dragAndDropService.removeDragSource(i)})}},t.prototype.createDragItem=function(){var e={};return e[this.column.getId()]=this.column.isVisible(),{columns:[this.column],visibleState:e}},t.prototype.setupResize=function(){var e=this,t=this.column.getColDef();if(this.eResize){if(!this.column.isResizable())return void p.Utils.removeFromParent(this.eResize);this.horizontalDragService.addDragHandling({eDraggableElement:this.eResize,eBody:this.eRoot,cursor:"col-resize",startAfterPixels:0,onDragStart:this.onDragStart.bind(this),onDragging:this.onDragging.bind(this)});!this.gridOptionsWrapper.isSuppressAutoSize()&&!t.suppressAutoSize&&this.addDestroyableEventListener(this.eResize,"dblclick",function(){e.columnController.autoSizeColumn(e.column)})}},t.prototype.onDragging=function(e,t){var o=this.normaliseDragChange(e),i=this.startWidth+o;this.columnController.setColumnWidth(this.column,i,t)},t.prototype.onDragStart=function(){this.startWidth=this.column.getActualWidth()},t.prototype.setupTooltip=function(){var e=this.column.getColDef();e.headerTooltip&&(this.getHtmlElement().title=e.headerTooltip)},t.prototype.setupMovingCss=function(){this.addDestroyableEventListener(this.column,l.Column.EVENT_MOVING_CHANGED,this.onColumnMovingChanged.bind(this)),this.onColumnMovingChanged()},t.prototype.addAttributes=function(){this.getHtmlElement().setAttribute("col-id",this.column.getColId())},t.prototype.setupWidth=function(){this.addDestroyableEventListener(this.column,l.Column.EVENT_WIDTH_CHANGED,this.onColumnWidthChanged.bind(this)),this.onColumnWidthChanged()},t.prototype.setupMenuClass=function(){this.addDestroyableEventListener(this.column,l.Column.EVENT_MENU_VISIBLE_CHANGED,this.onMenuVisible.bind(this)),this.onColumnWidthChanged()},t.prototype.onMenuVisible=function(){this.addOrRemoveCssClass("ag-column-menu-visible",this.column.isMenuVisible())},t.prototype.onColumnWidthChanged=function(){this.getHtmlElement().style.width=this.column.getActualWidth()+"px"},t.prototype.normaliseDragChange=function(e){var t=e;return this.gridOptionsWrapper.isEnableRtl()?this.pinned!==l.Column.PINNED_LEFT&&(t*=-1):this.pinned===l.Column.PINNED_RIGHT&&(t*=-1),t},t.TEMPLATE='<div class="ag-header-cell" role="presentation" ><div ref="eResize" class="ag-header-cell-resize" role="presentation"></div><ag-checkbox ref="cbSelectAll" class="ag-header-select-all" role="presentation"></ag-checkbox></div>',n([a.Autowired("gridOptionsWrapper"),r("design:type",h.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.Autowired("dragAndDropService"),r("design:type",u.DragAndDropService)],t.prototype,"dragAndDropService",void 0),n([a.Autowired("columnController"),r("design:type",c.ColumnController)],t.prototype,"columnController",void 0),n([a.Autowired("horizontalDragService"),r("design:type",d.HorizontalDragService)],t.prototype,"horizontalDragService",void 0),n([a.Autowired("context"),r("design:type",a.Context)],t.prototype,"context",void 0),n([a.Autowired("menuFactory"),r("design:type",Object)],t.prototype,"menuFactory",void 0),n([a.Autowired("gridApi"),r("design:type",y.GridApi)],t.prototype,"gridApi",void 0),n([a.Autowired("columnApi"),r("design:type",c.ColumnApi)],t.prototype,"columnApi",void 0),n([a.Autowired("sortController"),r("design:type",v.SortController)],t.prototype,"sortController",void 0),n([a.Autowired("eventService"),r("design:type",m.EventService)],t.prototype,"eventService",void 0),n([a.Autowired("componentRecipes"),r("design:type",C.ComponentRecipes)],t.prototype,"componentRecipes",void 0),n([a.Autowired("columnHoverService"),r("design:type",O.ColumnHoverService)],t.prototype,"columnHoverService",void 0),n([a.Autowired("beans"),r("design:type",A.Beans)],t.prototype,"beans",void 0),n([w.RefSelector("eResize"),r("design:type",HTMLElement)],t.prototype,"eResize",void 0),n([w.RefSelector("cbSelectAll"),r("design:type",E.AgCheckbox)],t.prototype,"cbSelectAll",void 0),n([a.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],t.prototype,"init",null),t}(s.Component);t.HeaderWrapperComp=S},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),n=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=o(35),a=o(48),l=o(8),p=o(7),u=o(4),c=function(e){function t(){var t=e.call(this)||this;return t.selected=!1,t.readOnly=!1,t.passive=!1,t}return i(t,e),t.prototype.postConstruct=function(){this.setTemplate(t.TEMPLATE),this.loadIcons(),this.updateIcons()},t.prototype.attributesSet=function(){e.prototype.attributesSet.call(this);var t=this.getAttribute("label");t&&(this.eLabel.innerText=t)},t.prototype.loadIcons=function(){l.Utils.removeAllChildren(this.eChecked),l.Utils.removeAllChildren(this.eUnchecked),l.Utils.removeAllChildren(this.eIndeterminate),this.readOnly?(this.eChecked.appendChild(l.Utils.createIconNoSpan("checkboxCheckedReadOnly",this.gridOptionsWrapper,null)),this.eUnchecked.appendChild(l.Utils.createIconNoSpan("checkboxUncheckedReadOnly",this.gridOptionsWrapper,null)),this.eIndeterminate.appendChild(l.Utils.createIconNoSpan("checkboxIndeterminateReadOnly",this.gridOptionsWrapper,null))):(this.eChecked.appendChild(l.Utils.createIconNoSpan("checkboxChecked",this.gridOptionsWrapper,null)),this.eUnchecked.appendChild(l.Utils.createIconNoSpan("checkboxUnchecked",this.gridOptionsWrapper,null)),this.eIndeterminate.appendChild(l.Utils.createIconNoSpan("checkboxIndeterminate",this.gridOptionsWrapper,null)))},t.prototype.onClick=function(){this.readOnly||this.toggle()},t.prototype.getNextValue=function(){return void 0===this.selected||!this.selected},t.prototype.setPassive=function(e){this.passive=e},t.prototype.setReadOnly=function(e){this.readOnly=e,this.loadIcons()},t.prototype.isReadOnly=function(){return this.readOnly},t.prototype.isSelected=function(){return this.selected},t.prototype.toggle=function(){var e=this.getNextValue();if(this.passive){var o={type:t.EVENT_CHANGED,selected:e};this.dispatchEvent(o)}else this.setSelected(e)},t.prototype.setSelected=function(e){if(this.selected!==e){this.selected=!0===e||!1!==e&&void 0,this.updateIcons();var o={type:t.EVENT_CHANGED,selected:this.selected};this.dispatchEvent(o)}},t.prototype.updateIcons=function(){l.Utils.setVisible(this.eChecked,!0===this.selected),l.Utils.setVisible(this.eUnchecked,!1===this.selected),l.Utils.setVisible(this.eIndeterminate,void 0===this.selected)},t.EVENT_CHANGED="change",t.TEMPLATE='<span class="ag-checkbox" role="presentation">  <span class="ag-checkbox-checked" role="presentation"></span>  <span class="ag-checkbox-unchecked" role="presentation"></span>  <span class="ag-checkbox-indeterminate" role="presentation"></span>  <span class="ag-checkbox-label" role="presentation"></span></span>',n([p.Autowired("gridOptionsWrapper"),r("design:type",u.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.QuerySelector(".ag-checkbox-checked"),r("design:type",HTMLElement)],t.prototype,"eChecked",void 0),n([a.QuerySelector(".ag-checkbox-unchecked"),r("design:type",HTMLElement)],t.prototype,"eUnchecked",void 0),n([a.QuerySelector(".ag-checkbox-indeterminate"),r("design:type",HTMLElement)],t.prototype,"eIndeterminate",void 0),n([a.QuerySelector(".ag-checkbox-label"),r("design:type",HTMLElement)],t.prototype,"eLabel",void 0),n([p.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],t.prototype,"postConstruct",null),n([a.Listener("click"),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],t.prototype,"onClick",null),t}(s.Component);t.AgCheckbox=c},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),n=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=o(98),a=o(36),l=o(7),p=o(15),u=o(12),c=o(11),d=o(5),h=o(9),f=o(27),g=o(4),y=function(e){function t(t,o){var i=e.call(this)||this;i.cbSelectAllVisible=!1,i.processingEventFromCheckbox=!1,i.cbSelectAll=t,i.column=o;var n=o.getColDef();return i.filteredOnly=!!n&&!!n.headerCheckboxSelectionFilteredOnly,i}return i(t,e),t.prototype.postConstruct=function(){this.showOrHideSelectAll(),this.addDestroyableEventListener(this.eventService,c.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,this.showOrHideSelectAll.bind(this)),this.addDestroyableEventListener(this.eventService,c.Events.EVENT_SELECTION_CHANGED,this.onSelectionChanged.bind(this)),this.addDestroyableEventListener(this.eventService,c.Events.EVENT_MODEL_UPDATED,this.onModelChanged.bind(this)),this.addDestroyableEventListener(this.cbSelectAll,s.AgCheckbox.EVENT_CHANGED,this.onCbSelectAll.bind(this))},t.prototype.showOrHideSelectAll=function(){this.cbSelectAllVisible=this.isCheckboxSelection(),this.cbSelectAll.setVisible(this.cbSelectAllVisible),this.cbSelectAllVisible&&(this.checkRightRowModelType(),this.updateStateOfCheckbox())},t.prototype.onModelChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},t.prototype.onSelectionChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},t.prototype.getNextCheckboxState=function(e){return(0!==e.selected||0!==e.notSelected)&&(e.selected>0&&e.notSelected>0?null:e.selected>0)},t.prototype.updateStateOfCheckbox=function(){if(!this.processingEventFromCheckbox){this.processingEventFromCheckbox=!0;var e=this.getSelectionCount(),t=this.getNextCheckboxState(e);this.cbSelectAll.setSelected(t),this.processingEventFromCheckbox=!1}},t.prototype.getSelectionCount=function(){var e=0,t=0,o=function(o){o.isSelected()?e++:t++};return this.filteredOnly?this.gridApi.forEachNodeAfterFilter(o):this.gridApi.forEachNode(o),{notSelected:t,selected:e}},t.prototype.checkRightRowModelType=function(){var e=this.rowModel.getType();e===h.Constants.ROW_MODEL_TYPE_IN_MEMORY||console.log("ag-Grid: selectAllCheckbox is only available if using normal row model, you are using "+e)},t.prototype.onCbSelectAll=function(){if(!this.processingEventFromCheckbox&&this.cbSelectAllVisible){this.cbSelectAll.isSelected()?this.selectionController.selectAllRowNodes(this.filteredOnly):this.selectionController.deselectAllRowNodes(this.filteredOnly)}},t.prototype.isCheckboxSelection=function(){var e=this.column.getColDef().headerCheckboxSelection;if("function"==typeof e){e=e({column:this.column,colDef:this.column.getColDef(),columnApi:this.columnApi,api:this.gridApi})}return!!e&&(this.gridOptionsWrapper.isRowModelEnterprise()?(console.warn("headerCheckboxSelection is not supported for Enterprise Row Model"),!1):this.gridOptionsWrapper.isRowModelInfinite()?(console.warn("headerCheckboxSelection is not supported for Infinite Row Model"),!1):!this.gridOptionsWrapper.isRowModelViewport()||(console.warn("headerCheckboxSelection is not supported for Viewport Row Model"),!1))},n([l.Autowired("gridApi"),r("design:type",u.GridApi)],t.prototype,"gridApi",void 0),n([l.Autowired("columnApi"),r("design:type",p.ColumnApi)],t.prototype,"columnApi",void 0),n([l.Autowired("eventService"),r("design:type",d.EventService)],t.prototype,"eventService",void 0),n([l.Autowired("rowModel"),r("design:type",Object)],t.prototype,"rowModel",void 0),n([l.Autowired("selectionController"),r("design:type",f.SelectionController)],t.prototype,"selectionController",void 0),n([l.Autowired("gridOptionsWrapper"),r("design:type",g.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([l.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(a.BeanStub);t.SelectAllFeature=y},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),n=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=o(35),a=o(17),l=o(8),p=o(16),u=o(15),c=o(4),d=o(95),h=o(7),f=o(96),g=o(90),y=o(67),v=o(12),m=o(57),C=o(68),E=function(e){function t(o,i,n,r){var s=e.call(this,t.TEMPLATE)||this;return s.childColumnsDestroyFuncs=[],s.columnGroup=o,s.eRoot=i,s.dragSourceDropTarget=n,s.pinned=r,s}return i(t,e),t.prototype.postConstruct=function(){f.CssClassApplier.addHeaderClassesFromColDef(this.columnGroup.getColGroupDef(),this.getHtmlElement(),this.gridOptionsWrapper,null,this.columnGroup);var e=this.columnController.getDisplayNameForColumnGroup(this.columnGroup,"header"),t=this.appendHeaderGroupComp(e);this.setupResize(),this.addClasses(),this.setupMove(l.Utils.ensureElement(t.getGui()),e),this.setupWidth(),this.addAttributes();var o=new y.SetLeftFeature(this.columnGroup,this.getHtmlElement(),this.beans);o.init(),this.addDestroyFunc(o.destroy.bind(o))},t.prototype.addAttributes=function(){this.getHtmlElement().setAttribute("col-id",this.columnGroup.getUniqueId())},t.prototype.appendHeaderGroupComp=function(e){var t=this,o={displayName:e,columnGroup:this.columnGroup,setExpanded:function(e){t.columnController.setColumnGroupOpened(t.columnGroup.getOriginalColumnGroup(),e)},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext()},i=this.componentRecipes.newHeaderGroupComponent(o);return this.appendChild(i),i},t.prototype.addClasses=function(){this.columnGroup.isPadding()?this.addCssClass("ag-header-group-cell-no-group"):this.addCssClass("ag-header-group-cell-with-group")},t.prototype.setupMove=function(e,t){var o=this;if(e&&!this.isSuppressMoving()&&e){var i={type:g.DragSourceType.HeaderCell,eElement:e,dragItemName:t,dragItemCallback:this.getDragItemForGroup.bind(this),dragSourceDropTarget:this.dragSourceDropTarget};this.dragAndDropService.addDragSource(i,!0),this.addDestroyFunc(function(){return o.dragAndDropService.removeDragSource(i)})}},t.prototype.getDragItemForGroup=function(){var e=this.columnGroup.getOriginalColumnGroup().getLeafColumns(),t={};e.forEach(function(e){return t[e.getId()]=e.isVisible()});var o=[];return this.columnController.getAllDisplayedColumns().forEach(function(t){e.indexOf(t)>=0&&(o.push(t),l.Utils.removeFromArray(e,t))}),e.forEach(function(e){return o.push(e)}),{columns:o,visibleState:t}},t.prototype.isSuppressMoving=function(){var e=!1;return this.columnGroup.getLeafColumns().forEach(function(t){t.getColDef().suppressMovable&&(e=!0)}),e||this.gridOptionsWrapper.isSuppressMovableColumns()||this.gridOptionsWrapper.isForPrint()},t.prototype.setupWidth=function(){this.addListenersToChildrenColumns(),this.addDestroyableEventListener(this.columnGroup,p.ColumnGroup.EVENT_DISPLAYED_CHILDREN_CHANGED,this.onDisplayedChildrenChanged.bind(this)),this.onWidthChanged(),this.addDestroyFunc(this.destroyListenersOnChildrenColumns.bind(this))},t.prototype.onDisplayedChildrenChanged=function(){this.addListenersToChildrenColumns(),this.onWidthChanged()},t.prototype.addListenersToChildrenColumns=function(){var e=this;this.destroyListenersOnChildrenColumns();var t=this.onWidthChanged.bind(this);this.columnGroup.getLeafColumns().forEach(function(o){o.addEventListener(a.Column.EVENT_WIDTH_CHANGED,t),o.addEventListener(a.Column.EVENT_VISIBLE_CHANGED,t),e.childColumnsDestroyFuncs.push(function(){o.removeEventListener(a.Column.EVENT_WIDTH_CHANGED,t),o.removeEventListener(a.Column.EVENT_VISIBLE_CHANGED,t)})})},t.prototype.destroyListenersOnChildrenColumns=function(){this.childColumnsDestroyFuncs.forEach(function(e){return e()}),this.childColumnsDestroyFuncs=[]},t.prototype.onWidthChanged=function(){this.getHtmlElement().style.width=this.columnGroup.getActualWidth()+"px"},t.prototype.setupResize=function(){var e=this;if(this.eHeaderCellResize=this.getRefElement("agResize"),!this.columnGroup.isResizable())return void l.Utils.removeFromParent(this.eHeaderCellResize);this.dragService.addDragHandling({eDraggableElement:this.eHeaderCellResize,eBody:this.eRoot,cursor:"col-resize",startAfterPixels:0,onDragStart:this.onDragStart.bind(this),onDragging:this.onDragging.bind(this)}),this.gridOptionsWrapper.isSuppressAutoSize()||this.eHeaderCellResize.addEventListener("dblclick",function(t){var o=[];e.columnGroup.getDisplayedLeafColumns().forEach(function(e){e.getColDef().suppressAutoSize||o.push(e.getColId())}),o.length>0&&e.columnController.autoSizeColumns(o)})},t.prototype.onDragStart=function(){var e=this;this.groupWidthStart=this.columnGroup.getActualWidth(),this.childrenWidthStarts=[],this.columnGroup.getDisplayedLeafColumns().forEach(function(t){e.childrenWidthStarts.push(t.getActualWidth())})},t.prototype.onDragging=function(e,t){var o,i,n=this,r=this.normaliseDragChange(e),s=this.groupWidthStart+r,a=this.columnGroup.getDisplayedLeafColumns();i=l.Utils.filter(a,function(e){return e.isResizable()});var p=l.Utils.filter(a,function(e){return!e.isResizable()}),u=0;p.forEach(function(e){return u+=e.getActualWidth()}),o=s-u;var c=0;i.forEach(function(e){return c+=e.getMinWidth()}),o<c&&(o=c);var d=o/this.groupWidthStart,h=o;i.forEach(function(e,o){var r,s=o!==i.length-1;if(s){r=n.childrenWidthStarts[o]*d,r<e.getMinWidth()&&(r=e.getMinWidth()),h-=r}else r=h;n.columnController.setColumnWidth(e,r,t)})},t.prototype.normaliseDragChange=function(e){var t=e;return this.gridOptionsWrapper.isEnableRtl()?this.pinned!==a.Column.PINNED_LEFT&&(t*=-1):this.pinned===a.Column.PINNED_RIGHT&&(t*=-1),t},t.TEMPLATE='<div class="ag-header-group-cell"><div ref="agResize" class="ag-header-cell-resize"></div></div>',n([h.Autowired("gridOptionsWrapper"),r("design:type",c.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([h.Autowired("columnController"),r("design:type",u.ColumnController)],t.prototype,"columnController",void 0),n([h.Autowired("horizontalDragService"),r("design:type",d.HorizontalDragService)],t.prototype,"dragService",void 0),n([h.Autowired("dragAndDropService"),r("design:type",g.DragAndDropService)],t.prototype,"dragAndDropService",void 0),n([h.Autowired("context"),r("design:type",h.Context)],t.prototype,"context",void 0),n([h.Autowired("componentRecipes"),r("design:type",m.ComponentRecipes)],t.prototype,"componentRecipes",void 0),n([h.Autowired("gridApi"),r("design:type",v.GridApi)],t.prototype,"gridApi",void 0),n([h.Autowired("columnApi"),r("design:type",u.ColumnApi)],t.prototype,"columnApi",void 0),n([h.Autowired("beans"),r("design:type",C.Beans)],t.prototype,"beans",void 0),n([h.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],t.prototype,"postConstruct",null),t}(s.Component);t.HeaderGroupWrapperComp=E},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(90),s=o(7),a=o(102),l=o(17),p=o(24),u=o(103),c=o(15),d=function(){function e(e,t){this.pinned=e,this.eContainer=t}return e.prototype.getSecondaryContainers=function(){return this.eSecondaryContainers},e.prototype.getContainer=function(){return this.eContainer},e.prototype.init=function(){switch(this.moveColumnController=new a.MoveColumnController(this.pinned,this.eContainer),this.context.wireBean(this.moveColumnController),this.bodyDropPivotTarget=new u.BodyDropPivotTarget(this.pinned),this.context.wireBean(this.bodyDropPivotTarget),this.pinned){case l.Column.PINNED_LEFT:this.eSecondaryContainers=this.gridPanel.getDropTargetLeftContainers();break;case l.Column.PINNED_RIGHT:this.eSecondaryContainers=this.gridPanel.getDropTargetPinnedRightContainers();break;default:this.eSecondaryContainers=this.gridPanel.getDropTargetBodyContainers()}this.dragAndDropService.addDropTarget(this)},e.prototype.getIconName=function(){return this.currentDropListener.getIconName()},e.prototype.isUseBodyDropPivotTarget=function(e){return!!this.columnController.isPivotMode()&&e.dragSource.type===r.DragSourceType.ToolPanel},e.prototype.onDragEnter=function(e){var t=this.isUseBodyDropPivotTarget(e);this.currentDropListener=t?this.bodyDropPivotTarget:this.moveColumnController,this.currentDropListener.onDragEnter(e)},e.prototype.onDragLeave=function(e){this.currentDropListener.onDragLeave(e)},e.prototype.onDragging=function(e){this.currentDropListener.onDragging(e)},e.prototype.onDragStop=function(e){this.currentDropListener.onDragStop(e)},i([s.Autowired("context"),n("design:type",s.Context)],e.prototype,"context",void 0),i([s.Autowired("gridPanel"),n("design:type",p.GridPanel)],e.prototype,"gridPanel",void 0),i([s.Autowired("dragAndDropService"),n("design:type",r.DragAndDropService)],e.prototype,"dragAndDropService",void 0),i([s.Autowired("columnController"),n("design:type",c.ColumnController)],e.prototype,"columnController",void 0),i([s.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),e}();t.BodyDropTarget=d},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(7),s=o(6),a=o(15),l=o(17),p=o(8),u=o(90),c=o(24),d=o(4),h=function(){function e(e,t){this.needToMoveLeft=!1,this.needToMoveRight=!1,this.pinned=e,this.eContainer=t,this.centerContainer=!p.Utils.exists(e)}return e.prototype.init=function(){this.logger=this.loggerFactory.create("MoveColumnController")},e.prototype.getIconName=function(){return this.pinned?u.DragAndDropService.ICON_PINNED:u.DragAndDropService.ICON_MOVE},e.prototype.onDragEnter=function(e){var t=e.dragItem.columns;if(e.dragSource.type===u.DragSourceType.ToolPanel)this.columnController.setColumnsVisible(t,!0);else{var o=e.dragItem.visibleState,i=t.filter(function(e){return o[e.getId()]});this.columnController.setColumnsVisible(i,!0)}this.columnController.setColumnsPinned(t,this.pinned),this.onDragging(e,!0)},e.prototype.onDragLeave=function(e){if(!this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns()&&!e.fromNudge){var t=e.dragSource.dragItemCallback(),o=t.columns;this.columnController.setColumnsVisible(o,!1)}this.ensureIntervalCleared()},e.prototype.onDragStop=function(){this.ensureIntervalCleared()},e.prototype.normaliseX=function(e){this.gridOptionsWrapper.isEnableRtl()&&(e=this.eContainer.clientWidth-e);return this.centerContainer&&(e+=this.gridPanel.getBodyViewportScrollLeft()),e},e.prototype.checkCenterForScrolling=function(e){if(this.centerContainer){var t=this.gridPanel.getBodyViewportScrollLeft(),o=t+this.gridPanel.getCenterWidth();this.gridOptionsWrapper.isEnableRtl()?(this.needToMoveRight=e<t+50,this.needToMoveLeft=e>o-50):(this.needToMoveLeft=e<t+50,this.needToMoveRight=e>o-50),this.needToMoveLeft||this.needToMoveRight?this.ensureIntervalStarted():this.ensureIntervalCleared()}},e.prototype.onDragging=function(e,t){if(void 0===t&&(t=!1),this.lastDraggingEvent=e,!p.Utils.missing(e.hDirection)){var o=this.normaliseX(e.x);t||this.checkCenterForScrolling(o);var i=this.normaliseDirection(e.hDirection),n=e.dragSource.type,r=e.dragSource.dragItemCallback().columns;this.attemptMoveColumns(n,r,i,o,t)}},e.prototype.normaliseDirection=function(e){if(!this.gridOptionsWrapper.isEnableRtl())return e;switch(e){case u.HDirection.Left:return u.HDirection.Right;case u.HDirection.Right:return u.HDirection.Left;default:console.error("ag-Grid: Unknown direction "+e)}},e.prototype.calculateOldIndex=function(e){var t=this.columnController.getAllGridColumns(),o=[];e.forEach(function(e){return o.push(t.indexOf(e))}),p.Utils.sortNumberArray(o);var i=o[0];return o[o.length-1]-i!=o.length-1?null:i},e.prototype.attemptMoveColumns=function(e,t,o,i,n){for(var r=o===u.HDirection.Left,s=o===u.HDirection.Right,a=this.calculateValidMoves(t,s,i),l=this.calculateOldIndex(t),p=0;p<a.length;p++){var c=a[p],d=null!==l&&!n;if(e==u.DragSourceType.HeaderCell&&(d=null!==l),d){if(r&&c>=l)continue;if(s&&c<=l)continue}if(this.columnController.doesMovePassRules(t,c))return void this.columnController.moveColumns(t,c)}},e.prototype.calculateValidMoves=function(e,t,o){var i=this.columnController.getDisplayedColumns(this.pinned),n=this.columnController.getAllGridColumns(),r=function(t){return e.indexOf(t)>=0},s=function(t){return e.indexOf(t)<0},a=i.filter(r),l=i.filter(s),u=n.filter(s),c=0,d=o;if(t){var h=0;a.forEach(function(e){return h+=e.getActualWidth()}),d-=h}for(var f=0;f<l.length;f++){if((d-=l[f].getActualWidth())<0)break;c++}t&&c++;var g;if(c>0){var y=l[c-1];g=u.indexOf(y)+1}else g=0;for(var v=[g],m=n[g];p.Utils.exists(m)&&this.isColumnHidden(i,m);)g++,v.push(g),m=n[g];return v},e.prototype.isColumnHidden=function(e,t){return e.indexOf(t)<0},e.prototype.ensureIntervalStarted=function(){this.movingIntervalId||(this.intervalCount=0,this.failedMoveAttempts=0,this.movingIntervalId=setInterval(this.moveInterval.bind(this),100),this.needToMoveLeft?this.dragAndDropService.setGhostIcon(u.DragAndDropService.ICON_LEFT,!0):this.dragAndDropService.setGhostIcon(u.DragAndDropService.ICON_RIGHT,!0))},e.prototype.ensureIntervalCleared=function(){this.moveInterval&&(clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.dragAndDropService.setGhostIcon(u.DragAndDropService.ICON_MOVE))},e.prototype.moveInterval=function(){var e;this.intervalCount++,(e=10+5*this.intervalCount)>100&&(e=100);var t;if(this.needToMoveLeft?t=this.gridPanel.scrollHorizontally(-e):this.needToMoveRight&&(t=this.gridPanel.scrollHorizontally(e)),0!==t)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else if(this.failedMoveAttempts++,this.dragAndDropService.setGhostIcon(u.DragAndDropService.ICON_PINNED),this.failedMoveAttempts>7){var o=this.lastDraggingEvent.dragItem.columns,i=this.needToMoveLeft?l.Column.PINNED_LEFT:l.Column.PINNED_RIGHT;this.columnController.setColumnsPinned(o,i),this.dragAndDropService.nudge()}},i([r.Autowired("loggerFactory"),n("design:type",s.LoggerFactory)],e.prototype,"loggerFactory",void 0),i([r.Autowired("columnController"),n("design:type",a.ColumnController)],e.prototype,"columnController",void 0),i([r.Autowired("gridPanel"),n("design:type",c.GridPanel)],e.prototype,"gridPanel",void 0),i([r.Autowired("dragAndDropService"),n("design:type",u.DragAndDropService)],e.prototype,"dragAndDropService",void 0),i([r.Autowired("gridOptionsWrapper"),n("design:type",d.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),e}();t.MoveColumnController=h},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(90),s=o(15),a=o(7),l=o(4),p=function(){function e(e){this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[],this.pinned=e}return e.prototype.onDragEnter=function(e){var t=this;if(this.clearColumnsList(),!this.gridOptionsWrapper.isFunctionsReadOnly()){e.dragItem.columns.forEach(function(e){e.isPrimary()&&(e.isAnyFunctionActive()||(e.isAllowValue()?t.columnsToAggregate.push(e):e.isAllowRowGroup()?t.columnsToGroup.push(e):e.isAllowRowGroup()&&t.columnsToPivot.push(e)))})}},e.prototype.getIconName=function(){return this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length>0?this.pinned?r.DragAndDropService.ICON_PINNED:r.DragAndDropService.ICON_MOVE:null},e.prototype.onDragLeave=function(e){this.clearColumnsList()},e.prototype.clearColumnsList=function(){this.columnsToAggregate.length=0,this.columnsToGroup.length=0,this.columnsToPivot.length=0},e.prototype.onDragging=function(e){},e.prototype.onDragStop=function(e){this.columnsToAggregate.length>0&&this.columnController.addValueColumns(this.columnsToAggregate),this.columnsToGroup.length>0&&this.columnController.addRowGroupColumns(this.columnsToGroup),this.columnsToPivot.length>0&&this.columnController.addPivotColumns(this.columnsToPivot)},i([a.Autowired("columnController"),n("design:type",s.ColumnController)],e.prototype,"columnController",void 0),i([a.Autowired("gridOptionsWrapper"),n("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),e}();t.BodyDropPivotTarget=p},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){this.existingIds={}}return e.prototype.getInstanceIdForKey=function(e){var t,o=this.existingIds[e];return t="number"!=typeof o?0:o+1,this.existingIds[e]=t,t},e}();t.GroupInstanceIdCreator=o},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(7),s=o(17),a=o(4),l=o(8),p=o(15),u=function(){function e(){}return t=e,e.prototype.createAutoGroupColumns=function(e){var t=this,o=[];return this.gridOptionsWrapper.isGroupMultiAutoColumn()?e.forEach(function(e,i){o.push(t.createOneAutoGroupColumn(e,i))}):o.push(this.createOneAutoGroupColumn(null)),o},e.prototype.createOneAutoGroupColumn=function(e,o){var i,n=this.generateDefaultColDef(e,o),r=this.gridOptionsWrapper.getAutoGroupColumnDef();if(i=e?t.GROUP_AUTO_COLUMN_ID+"-"+e.getId():t.GROUP_AUTO_COLUMN_BUNDLE_ID,l._.mergeDeep(n,r),n.colId=i,null==r||null==r.suppressFilter){var a=null!=n.field||null!=n.valueGetter;n.suppressFilter=!a}o>0&&(n.headerCheckboxSelection=!1);var p=new s.Column(n,i,!0);return this.context.wireBean(p),p},e.prototype.generateDefaultColDef=function(e,t){var o=this.gridOptionsWrapper.getLocaleTextFunc(),i={headerName:o("group","Group"),cellRenderer:"group"};if(i.suppressMovable=!0,e){var n=e.getColDef();l._.assign(i,{headerName:this.columnController.getDisplayNameForColumn(e,"header"),headerValueGetter:n.headerValueGetter}),n.cellRenderer&&l._.assign(i,{cellRendererParams:{innerRenderer:n.cellRenderer,innerRendererParams:n.cellRendererParams}}),i.showRowGroup=e.getColId()}else i.showRowGroup=!0;return i},e.GROUP_AUTO_COLUMN_ID="ag-Grid-AutoColumn",e.GROUP_AUTO_COLUMN_BUNDLE_ID=t.GROUP_AUTO_COLUMN_ID,i([r.Autowired("gridOptionsWrapper"),n("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.Autowired("context"),n("design:type",r.Context)],e.prototype,"context",void 0),i([r.Autowired("columnController"),n("design:type",p.ColumnController)],e.prototype,"columnController",void 0),e=t=i([r.Bean("autoGroupColService")],e);var t}();t.AutoGroupColService=u},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s};Object.defineProperty(t,"__esModule",{value:!0});var n=o(7),r=function(){function e(){}return e.prototype.download=function(e,t,o){var i=new Blob(["\ufeff",t],{type:o});if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(i,e);else{var n=document.createElement("a");n.href=window.URL.createObjectURL(i),n.download=e,document.body.appendChild(n),n.click(),document.body.removeChild(n)}},e=i([n.Bean("downloader")],e)}();t.Downloader=r},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(7),s=o(9),a=o(8),l=o(4),p=function(){function e(){}return e.prototype.postConstruct=function(){this.rowModel.getType()===s.Constants.ROW_MODEL_TYPE_IN_MEMORY&&(this.inMemoryRowModel=this.rowModel)},e.prototype.createTransactionForRowData=function(e){if(a._.missing(this.inMemoryRowModel))return void console.error("ag-Grid: ImmutableService only works with InMemoryRowModel");var t=this.gridOptionsWrapper.getRowNodeIdFunc();if(a._.missing(t))return void console.error("ag-Grid: ImmutableService requires getRowNodeId() callback to be implemented, your row data need IDs!");var o={remove:[],update:[],add:[]},i=this.inMemoryRowModel.getCopyOfNodesMap();return a._.exists(e)&&e.forEach(function(e){var n=t(e),r=i[n];if(r){r.data!==e&&o.update.push(e),i[n]=void 0}else o.add.push(e)}),a._.iterateObject(i,function(e,t){t&&o.remove.push(t.data)}),o},i([r.Autowired("rowModel"),n("design:type",Object)],e.prototype,"rowModel",void 0),i([r.Autowired("gridOptionsWrapper"),n("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"postConstruct",null),e=i([r.Bean("immutableService")],e)}();t.ImmutableService=p},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultColumnTypes={numericColumn:{headerClass:"ag-numeric-header",cellClass:"ag-numeric-cell"}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(8),n=function(){function e(){this.existingKeys=[]}return e.prototype.getUniqueKey=function(e,t){e=i.Utils.toStringOrNull(e);for(var o=0;;){var n=void 0;if(e?(n=e,0!==o&&(n+="_"+o)):t?(n=t,0!==o&&(n+="_"+o)):n=""+o,this.existingKeys.indexOf(n)<0)return this.existingKeys.push(n),n;o++}},e}();t.ColumnKeyCreator=n},function(e,t,o){"use strict";function i(e){e.module("agGrid",[]).directive("agGrid",function(){return{restrict:"A",controller:["$element","$scope","$compile","$attrs",n],scope:!0}})}function n(e,t,o,i){var n,s,a=i.agGrid;if(s=a+".quickFilterText",!(n=t.$eval(a)))return void console.warn("WARNING - grid options for ag-Grid not found. Please ensure the attribute ag-grid points to a valid object on the scope");var l=e[0],p={$scope:t,$compile:o,quickFilterOnScope:s},u=new r.Grid(l,n,p);t.$on("$destroy",function(){u.destroy()})}Object.defineProperty(t,"__esModule",{value:!0});var r=o(111);t.initialiseAgGridWithAngular1=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(4),n=o(27),r=o(15),s=o(23),a=o(88),l=o(51),p=o(31),u=o(5),c=o(24),d=o(12),h=o(94),f=o(3),g=o(21),y=o(20),v=o(49),m=o(52),C=o(6),E=o(18),w=o(22),R=o(95),_=o(7),O=o(13),A=o(50),S=o(112),b=o(90),P=o(26),D=o(62),T=o(38),N=o(28),F=o(87),L=o(8),x=o(113),G=o(115),I=o(117),M=o(70),W=o(11),V=o(118),H=o(124),U=o(77),B=o(81),k=o(73),j=o(98),z=o(127),Y=o(39),K=o(106),q=o(128),Q=o(14),X=o(82),$=o(83),Z=o(69),J=o(116),ee=o(114),te=o(129),oe=o(105),ie=o(41),ne=o(107),re=o(9),se=o(32),ae=o(130),le=o(43),pe=o(44),ue=o(58),ce=o(57),de=o(60),he=o(84),fe=o(85),ge=o(59),ye=o(68),ve=o(91),me=o(45),Ce=function(){function e(t,o,W){t||console.error("ag-Grid: no div element provided to the grid"),o||console.error("ag-Grid: no gridOptions provided to the grid");var V=this.getRowModelClass(o),H=L.Utils.exists(e.enterpriseBeans),re=W?W.frameworkFactory:null;L.Utils.missing(re)&&(re=new z.BaseFrameworkFactory);var Ce=[];e.enterpriseBeans&&(Ce=Ce.concat(e.enterpriseBeans)),e.frameworkBeans&&(Ce=Ce.concat(e.frameworkBeans));var Ee={enterprise:H,gridOptions:o,eGridDiv:t,$scope:W?W.$scope:null,$compile:W?W.$compile:null,quickFilterOnScope:W?W.quickFilterOnScope:null,globalEventListener:W?W.globalEventListener:null,frameworkFactory:re};W&&W.seedBeanInstances&&L.Utils.assign(Ee,W.seedBeanInstances);var we={overrideBeans:Ce,seed:Ee,beans:[V,ie.PaginationAutoPageSizeService,d.GridApi,de.ComponentProvider,he.AgComponentUtils,fe.ComponentMetadataProvider,de.ComponentProvider,ue.ComponentResolver,ce.ComponentRecipes,ge.NamedComponentResolver,U.CellRendererFactory,R.HorizontalDragService,h.HeaderTemplateLoader,pe.PinnedRowModel,P.DragService,g.DisplayedGroupCreator,u.EventService,i.GridOptionsWrapper,n.SelectionController,l.FilterManager,r.ColumnController,ie.PaginationProxy,s.RowRenderer,a.HeaderRenderer,y.ExpressionService,f.BalancedColumnTreeBuilder,O.CsvCreator,K.Downloader,q.XmlFactory,Q.GridSerializer,v.TemplateService,c.GridPanel,m.PopupService,se.ValueCache,p.ValueService,le.AlignedGridsService,C.LoggerFactory,E.ColumnUtils,w.AutoWidthCalculator,m.PopupService,A.GridCore,S.StandardMenuFactory,b.DragAndDropService,D.SortController,r.ColumnApi,T.FocusedCellController,N.MouseEventService,F.CellNavigationService,x.FilterStage,G.SortStage,I.FlattenStage,ee.FilterService,te.RowNodeFactory,M.CellEditorFactory,B.CellRendererService,k.ValueFormatterService,X.StylingService,Y.ScrollVisibleService,$.ColumnHoverService,Z.ColumnAnimationService,J.SortService,oe.AutoGroupColService,ne.ImmutableService,ae.ChangeDetectionService,ve.Environment,ye.Beans,me.AnimationFrameService],components:[{componentName:"AgCheckbox",theClass:j.AgCheckbox}],debug:!!o.debug},Re=function(){return we.debug};this.context=new _.Context(we,new C.Logger("Context",Re)),this.registerComponents(o),this.setColumnsAndData(),this.dispatchGridReadyEvent(o),o.debug&&console.log("ag-Grid -> initialised successfully, enterprise = "+H)}return e.setEnterpriseBeans=function(t,o){this.enterpriseBeans=t,L.Utils.iterateObject(o,function(t,o){return e.RowModelClasses[t]=o})},e.setFrameworkBeans=function(e){this.frameworkBeans=e},e.prototype.registerComponents=function(e){var t=this.context.getBean("componentProvider");null!=e.components&&Object.keys(e.components).forEach(function(o){t.registerComponent(o,e.components[o])}),null!=e.frameworkComponents&&Object.keys(e.frameworkComponents).forEach(function(o){t.registerFwComponent(o,e.frameworkComponents[o])})},e.prototype.setColumnsAndData=function(){var e=this.context.getBean("gridOptionsWrapper"),t=this.context.getBean("columnController"),o=this.context.getBean("rowModel"),i=e.getColumnDefs(),n=e.getRowData();L.Utils.missing(i)&&L.Utils.missing(n)||(this.context.getBean("valueService"),L.Utils.exists(i)&&t.setColumnDefs(i),L.Utils.exists(n)&&o.getType()===re.Constants.ROW_MODEL_TYPE_IN_MEMORY&&o.setRowData(n))},e.prototype.dispatchGridReadyEvent=function(e){var t=this.context.getBean("eventService"),o={type:W.Events.EVENT_GRID_READY,api:e.api,columnApi:e.columnApi};t.dispatchEvent(o)},e.prototype.getRowModelClass=function(t){var o=t.rowModelType;if(L.Utils.exists(o)){var i=e.RowModelClasses[o];if(L.Utils.exists(i))return i;if("normal"===o)return console.warn("ag-Grid: normal rowModel deprecated. Should now be called inMemory rowModel instead."),H.InMemoryRowModel;console.error("ag-Grid: could not find matching row model for rowModelType "+o),"viewport"===o&&console.error("ag-Grid: rowModelType viewport is only available in ag-Grid Enterprise"),"enterprise"===o&&console.error("ag-Grid: rowModelType viewport is only available in ag-Grid Enterprise")}return H.InMemoryRowModel},e.prototype.destroy=function(){this.context.destroy()},e.RowModelClasses={infinite:V.InfiniteRowModel,inMemory:H.InMemoryRowModel},e}();t.Grid=Ce},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(7),s=o(51),a=o(8),l=o(52),p=o(4),u=o(5),c=function(){function e(){}return e.prototype.showMenuAfterMouseEvent=function(e,t){var o=this;this.showPopup(e,function(i){o.popupService.positionPopupUnderMouseEvent({column:e,type:"columnMenu",mouseEvent:t,ePopup:i})})},e.prototype.showMenuAfterButtonClick=function(e,t){var o=this;this.showPopup(e,function(i){o.popupService.positionPopupUnderComponent({type:"columnMenu",eventSource:t,ePopup:i,keepWithinBounds:!0,column:e})})},e.prototype.showPopup=function(e,t){var o=this,i=this.filterManager.getOrCreateFilterWrapper(e),n=document.createElement("div");a.Utils.addCssClass(n,"ag-menu"),n.appendChild(i.gui);var r,s=function(e){"horizontal"===e.direction&&r()};this.eventService.addEventListener("bodyScroll",s);var l=function(){o.eventService.removeEventListener("bodyScroll",s),e.setMenuVisible(!1)};if(r=this.popupService.addAsModalPopup(n,!0,l),t(n),i.filter.afterGuiAttached){var p={hidePopup:r,eComponent:i.gui};i.filter.afterGuiAttached(p)}e.setMenuVisible(!0)},e.prototype.isMenuEnabled=function(e){return this.gridOptionsWrapper.isEnableFilter()&&e.isFilterAllowed()},i([r.Autowired("eventService"),n("design:type",u.EventService)],e.prototype,"eventService",void 0),i([r.Autowired("filterManager"),n("design:type",s.FilterManager)],e.prototype,"filterManager",void 0),i([r.Autowired("popupService"),n("design:type",l.PopupService)],e.prototype,"popupService",void 0),i([r.Autowired("gridOptionsWrapper"),n("design:type",p.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),e=i([r.Bean("menuFactory")],e)}();t.StandardMenuFactory=c},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(7),s=o(4),a=o(114),l=function(){function e(){}return e.prototype.execute=function(e){var t=e.rowNode;this.gridOptionsWrapper.isEnableServerSideFilter()?this.filterService.filter(t,!1):this.filterService.filterAccordingToColumnState(t)},i([r.Autowired("gridOptionsWrapper"),n("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.Autowired("filterService"),n("design:type",a.FilterService)],e.prototype,"filterService",void 0),e=i([r.Bean("filterStage")],e)}();t.FilterStage=l},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(7),s=o(51),a=function(){function e(){}return e.prototype.filterAccordingToColumnState=function(e){var t=this.filterManager.isAnyFilterPresent();this.filter(e,t)},e.prototype.filter=function(e,t){var o=this;e.childrenAfterGroup.forEach(function(e){e.group&&o.filter(e,t)});var i;t?(i=[],e.childrenAfterGroup.forEach(function(e){e.group?e.childrenAfterFilter.length>0&&i.push(e):o.filterManager.doesRowPassFilter(e)&&i.push(e)})):i=e.childrenAfterGroup,e.childrenAfterFilter=i,this.setAllChildrenCount(e)},e.prototype.setAllChildrenCount=function(e){var t=0;e.childrenAfterFilter.forEach(function(e){e.group?t+=e.allChildrenCount:t++}),e.setAllChildrenCount(t)},i([r.Autowired("filterManager"),n("design:type",s.FilterManager)],e.prototype,"filterManager",void 0),e=i([r.Bean("filterService")],e)}();t.FilterService=a},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(7),s=o(4),a=o(116),l=function(){function e(){}return e.prototype.execute=function(e){this.gridOptionsWrapper.isEnableServerSideSorting()?this.sortService.sort(e.rowNode,null):this.sortService.sortAccordingToColumnsState(e.rowNode)},i([r.Autowired("gridOptionsWrapper"),n("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.Autowired("sortService"),n("design:type",a.SortService)],e.prototype,"sortService",void 0),e=i([r.Bean("sortStage")],e)}();t.SortStage=l},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(7),s=o(62),a=o(8),l=o(31),p=o(4),u=o(15),c=function(){function e(){}return e.prototype.sortAccordingToColumnsState=function(e){var t=this.sortController.getSortForRowController();this.sort(e,t)},e.prototype.sort=function(e,t){var o=this;if(e.childrenAfterSort=e.childrenAfterFilter.slice(0),this.pullDownDataForHideOpenParents(e,!0),a._.exists(t)&&t.length>0){var i=e.childrenAfterSort.map(function(e,t){return{currentPos:t,rowNode:e}});i.sort(this.compareRowNodes.bind(this,t)),e.childrenAfterSort=i.map(function(e){return e.rowNode})}this.updateChildIndexes(e),this.pullDownDataForHideOpenParents(e,!1),e.childrenAfterFilter.forEach(function(e){e.group&&o.sort(e,t)})},e.prototype.compareRowNodes=function(e,t,o){for(var i=t.rowNode,n=o.rowNode,r=0,s=e.length;r<s;r++){var l=e[r],p=-1===l.inverter,u=this.getValue(i,l.column),c=this.getValue(n,l.column),d=void 0;if(0!==(d=l.column.getColDef().comparator?l.column.getColDef().comparator(u,c,i,n,p):a._.defaultComparator(u,c,this.gridOptionsWrapper.isAccentedSort())))return d*l.inverter}return t.currentPos-o.currentPos},e.prototype.getValue=function(e,t){return this.valueService.getValue(t,e)},e.prototype.updateChildIndexes=function(e){a._.missing(e.childrenAfterSort)||e.childrenAfterSort.forEach(function(t,o){var i=0===o,n=o===e.childrenAfterSort.length-1;t.setFirstChild(i),t.setLastChild(n),t.setChildIndex(o)})},e.prototype.pullDownDataForHideOpenParents=function(e,t){var o=this;a._.missing(e.childrenAfterSort)||this.gridOptionsWrapper.isGroupHideOpenParents()&&e.childrenAfterSort.forEach(function(e){o.columnController.getGroupDisplayColumns().forEach(function(i){var n=i.getColDef().showRowGroup;if("string"!=typeof n)return void console.error("ag-Grid: groupHideOpenParents only works when specifying specific columns for colDef.showRowGroup");var r=n,s=o.columnController.getPrimaryColumn(r);if(s!==e.rowGroupColumn)if(t)e.setGroupValue(i.getId(),null);else{var a=e.getFirstChildOfFirstChild(s);a&&e.setGroupValue(i.getId(),a.key)}})})},i([r.Autowired("sortController"),n("design:type",s.SortController)],e.prototype,"sortController",void 0),i([r.Autowired("columnController"),n("design:type",u.ColumnController)],e.prototype,"columnController",void 0),i([r.Autowired("valueService"),n("design:type",l.ValueService)],e.prototype,"valueService",void 0),i([r.Autowired("gridOptionsWrapper"),n("design:type",p.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),e=i([r.Bean("sortService")],e)}();t.SortService=c},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(7),s=o(30),a=o(8),l=o(4),p=o(27),u=o(5),c=o(15),d=function(){function e(){}return e.prototype.execute=function(e){var t=e.rowNode,o=[],i={value:0},n=this.columnController.isPivotMode(),r=n&&t.leafGroup,s=r?[t]:t.childrenAfterSort;return this.resetRowTops(t),this.recursivelyAddToRowsToDisplay(s,o,i,n,0),o},e.prototype.resetRowTops=function(e){if(e.clearRowTop(),e.group){if(e.childrenAfterGroup)for(var t=0;t<e.childrenAfterGroup.length;t++)this.resetRowTops(e.childrenAfterGroup[t]);e.sibling&&e.sibling.clearRowTop()}},e.prototype.recursivelyAddToRowsToDisplay=function(e,t,o,i,n){if(!a.Utils.missingOrEmpty(e))for(var r=this.gridOptionsWrapper.isGroupSuppressRow(),s=this.gridOptionsWrapper.isGroupHideOpenParents(),l=this.gridOptionsWrapper.isGroupRemoveSingleChildren(),p=0;p<e.length;p++){var u=e[p],c=r&&u.group,d=i&&!u.group,h=s&&u.expanded,f=l&&u.group&&1===u.childrenAfterGroup.length,g=!(d||c||h||f);if(g&&this.addRowNodeToRowsToDisplay(u,t,o,n),!i||!u.leafGroup)if(u.group){if(u.expanded||f){var y=f?n:n+1;this.recursivelyAddToRowsToDisplay(u.childrenAfterSort,t,o,i,y),this.gridOptionsWrapper.isGroupIncludeFooter()&&(this.ensureFooterNodeExists(u),this.addRowNodeToRowsToDisplay(u.sibling,t,o,n))}}else if(u.canFlower&&u.expanded){var v=this.createFlowerNode(u);this.addRowNodeToRowsToDisplay(v,t,o,n)}}},e.prototype.addRowNodeToRowsToDisplay=function(e,t,o,i){if(t.push(e),a.Utils.missing(e.rowHeight)){var n=this.gridOptionsWrapper.getRowHeightForNode(e);e.setRowHeight(n)}e.setUiLevel(i),e.setRowTop(o.value),e.setRowIndex(t.length-1),o.value+=e.rowHeight},e.prototype.ensureFooterNodeExists=function(e){if(!a.Utils.exists(e.sibling)){var t=new s.RowNode;this.context.wireBean(t),Object.keys(e).forEach(function(o){t[o]=e[o]}),t.footer=!0,t.rowTop=null,t.oldRowTop=null,a.Utils.exists(t.id)&&(t.id="rowGroupFooter_"+t.id),t.sibling=e,e.sibling=t}},e.prototype.createFlowerNode=function(e){if(a.Utils.exists(e.childFlower))return e.childFlower;var t=new s.RowNode;return this.context.wireBean(t),t.flower=!0,t.parent=e,a.Utils.exists(e.id)&&(t.id="flowerNode_"+e.id),t.data=e.data,t.level=e.level+1,e.childFlower=t,t},i([r.Autowired("gridOptionsWrapper"),n("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.Autowired("selectionController"),n("design:type",p.SelectionController)],e.prototype,"selectionController",void 0),i([r.Autowired("eventService"),n("design:type",u.EventService)],e.prototype,"eventService",void 0),i([r.Autowired("context"),n("design:type",r.Context)],e.prototype,"context",void 0),i([r.Autowired("columnController"),n("design:type",c.ColumnController)],e.prototype,"columnController",void 0),e=i([r.Bean("flattenStage")],e)}();t.FlattenStage=d},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),n=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=o(8),a=o(4),l=o(7),p=o(5),u=o(27),c=o(11),d=o(62),h=o(51),f=o(9),g=o(119),y=o(36),v=o(122),m=o(123),C=o(12),E=o(15),w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getRowBounds=function(e){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*e}},t.prototype.init=function(){var e=this;this.gridOptionsWrapper.isRowModelInfinite()&&(this.rowHeight=this.gridOptionsWrapper.getRowHeightAsNumber(),this.addEventListeners(),this.setDatasource(this.gridOptionsWrapper.getDatasource()),this.addDestroyFunc(function(){return e.destroyCache()}))},t.prototype.isLastRowFound=function(){return!!this.infiniteCache&&this.infiniteCache.isMaxRowFound()},t.prototype.addEventListeners=function(){this.addDestroyableEventListener(this.eventService,c.Events.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addDestroyableEventListener(this.eventService,c.Events.EVENT_SORT_CHANGED,this.onSortChanged.bind(this))},t.prototype.onFilterChanged=function(){this.gridOptionsWrapper.isEnableServerSideFilter()&&this.reset()},t.prototype.onSortChanged=function(){this.gridOptionsWrapper.isEnableServerSideSorting()&&this.reset()},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.getType=function(){return f.Constants.ROW_MODEL_TYPE_INFINITE},t.prototype.setDatasource=function(e){this.datasource=e,e&&(this.checkForDeprecated(),this.reset())},t.prototype.checkForDeprecated=function(){var e=this.datasource;s.Utils.exists(e.maxConcurrentRequests)&&console.error("ag-Grid: since version 5.1.x, maxConcurrentRequests is replaced with grid property maxConcurrentDatasourceRequests"),s.Utils.exists(e.maxPagesInCache)&&console.error("ag-Grid: since version 5.1.x, maxPagesInCache is replaced with grid property maxPagesInPaginationCache"),s.Utils.exists(e.overflowSize)&&console.error("ag-Grid: since version 5.1.x, overflowSize is replaced with grid property paginationOverflowSize"),s.Utils.exists(e.blockSize)&&console.error("ag-Grid: since version 5.1.x, pageSize/blockSize is replaced with grid property infinitePageSize")},t.prototype.isEmpty=function(){return s.Utils.missing(this.infiniteCache)},t.prototype.isRowsToRender=function(){return s.Utils.exists(this.infiniteCache)},t.prototype.getNodesInRangeForSelection=function(e,t){return this.infiniteCache.getRowNodesInRange(e,t)},t.prototype.reset=function(){if(!s.Utils.missing(this.datasource)){s.Utils.exists(this.gridOptionsWrapper.getRowNodeIdFunc())||this.selectionController.reset(),this.resetCache();var e=this.createModelUpdatedEvent();this.eventService.dispatchEvent(e)}},t.prototype.createModelUpdatedEvent=function(){return{type:c.Events.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,newPage:!1,newData:!1,keepRenderedRows:!1,animate:!1}},t.prototype.resetCache=function(){this.destroyCache();var e=this.gridOptionsWrapper.getMaxConcurrentDatasourceRequests();this.rowNodeBlockLoader=new m.RowNodeBlockLoader(e),this.context.wireBean(this.rowNodeBlockLoader);var t={datasource:this.datasource,filterModel:this.filterManager.getFilterModel(),sortModel:this.sortController.getSortModel(),rowNodeBlockLoader:this.rowNodeBlockLoader,maxConcurrentRequests:e,overflowSize:this.gridOptionsWrapper.getCacheOverflowSize(),initialRowCount:this.gridOptionsWrapper.getInfiniteInitialRowCount(),maxBlocksInCache:this.gridOptionsWrapper.getMaxBlocksInCache(),blockSize:this.gridOptionsWrapper.getCacheBlockSize(),rowHeight:this.gridOptionsWrapper.getRowHeightAsNumber(),lastAccessedSequence:new s.NumberSequence};t.maxConcurrentRequests>=1||(t.maxConcurrentRequests=2),t.blockSize>=1||(t.blockSize=100),t.initialRowCount>=1||(t.initialRowCount=0),t.overflowSize>=1||(t.overflowSize=1),this.infiniteCache=new g.InfiniteCache(t),this.context.wireBean(this.infiniteCache),this.infiniteCache.addEventListener(v.RowNodeCache.EVENT_CACHE_UPDATED,this.onCacheUpdated.bind(this))},t.prototype.destroyCache=function(){this.infiniteCache&&(this.infiniteCache.destroy(),this.infiniteCache=null),this.rowNodeBlockLoader&&(this.rowNodeBlockLoader.destroy(),this.rowNodeBlockLoader=null)},t.prototype.onCacheUpdated=function(){var e=this.createModelUpdatedEvent();this.eventService.dispatchEvent(e)},t.prototype.getRow=function(e){return this.infiniteCache?this.infiniteCache.getRow(e):null},t.prototype.forEachNode=function(e){this.infiniteCache&&this.infiniteCache.forEachNodeDeep(e,new s.NumberSequence)},t.prototype.getCurrentPageHeight=function(){return this.getRowCount()*this.rowHeight},t.prototype.getRowIndexAtPixel=function(e){if(0!==this.rowHeight){var t=Math.floor(e/this.rowHeight);return t>this.getPageLastRow()?this.getPageLastRow():t}return 0},t.prototype.getPageFirstRow=function(){return 0},t.prototype.getPageLastRow=function(){return this.infiniteCache?this.infiniteCache.getVirtualRowCount()-1:0},t.prototype.getRowCount=function(){return this.infiniteCache?this.infiniteCache.getVirtualRowCount():0},t.prototype.updateRowData=function(e){return s.Utils.exists(e.remove)||s.Utils.exists(e.update)?void console.warn("ag-Grid: updateRowData for InfiniteRowModel does not support remove or update, only add"):s.Utils.missing(e.addIndex)?void console.warn("ag-Grid: updateRowData for InfiniteRowModel requires add and addIndex to be set"):void(this.infiniteCache&&this.infiniteCache.insertItemsAtIndex(e.addIndex,e.add))},t.prototype.isRowPresent=function(e){return!1},t.prototype.refreshCache=function(){this.infiniteCache&&this.infiniteCache.refreshCache()},t.prototype.purgeCache=function(){this.infiniteCache&&this.infiniteCache.purgeCache()},t.prototype.getVirtualRowCount=function(){return this.infiniteCache?this.infiniteCache.getVirtualRowCount():null},t.prototype.isMaxRowFound=function(){if(this.infiniteCache)return this.infiniteCache.isMaxRowFound()},t.prototype.setVirtualRowCount=function(e,t){this.infiniteCache&&this.infiniteCache.setVirtualRowCount(e,t)},t.prototype.getBlockState=function(){return this.rowNodeBlockLoader?this.rowNodeBlockLoader.getBlockState():null},n([l.Autowired("gridOptionsWrapper"),r("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([l.Autowired("filterManager"),r("design:type",h.FilterManager)],t.prototype,"filterManager",void 0),n([l.Autowired("sortController"),r("design:type",d.SortController)],t.prototype,"sortController",void 0),n([l.Autowired("selectionController"),r("design:type",u.SelectionController)],t.prototype,"selectionController",void 0),n([l.Autowired("eventService"),r("design:type",p.EventService)],t.prototype,"eventService",void 0),n([l.Autowired("context"),r("design:type",l.Context)],t.prototype,"context",void 0),n([l.Autowired("gridApi"),r("design:type",C.GridApi)],t.prototype,"gridApi",void 0),n([l.Autowired("columnApi"),r("design:type",E.ColumnApi)],t.prototype,"columnApi",void 0),n([l.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],t.prototype,"init",null),n([l.PreDestroy,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],t.prototype,"destroy",null),t=n([l.Bean("rowModel")],t)}(y.BeanStub);t.InfiniteRowModel=w},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),n=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(o,i){t(o,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=o(7),l=o(5),p=o(11),u=o(6),c=o(120),d=o(122),h=o(12),f=o(15),g=function(e){function t(t){return e.call(this,t)||this}return i(t,e),t.prototype.setBeans=function(e){this.logger=e.create("InfiniteCache")},t.prototype.init=function(){e.prototype.init.call(this),this.getRow(0)},t.prototype.moveItemsDown=function(e,t,o){for(var i=e.getStartRow(),n=e.getEndRow(),r=t+o,s=n-1;s>=i;s--)if(!(s<r)){var a=s-o,l=this.getRow(a,!0);l?e.setRowNode(s,l):(e.setBlankRowNode(s),e.setDirty())}},t.prototype.insertItems=function(e,t,o){for(var i=e.getStartRow(),n=e.getEndRow(),r=[],s=0;s<o.length;s++){var a=t+s;if(a>=i&&a<n){var l=o[s],p=e.setNewData(a,l);r.push(p)}}return r},t.prototype.insertItemsAtIndex=function(e,t){var o=this,i=[];this.forEachBlockInReverseOrder(function(n){n.getEndRow()<=e||(o.moveItemsDown(n,e,t.length),o.insertItems(n,e,t).forEach(function(e){return i.push(e)}))}),this.isMaxRowFound()&&this.hack_setVirtualRowCount(this.getVirtualRowCount()+t.length),this.onCacheUpdated();var n={type:p.Events.EVENT_ROW_DATA_UPDATED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(n)},t.prototype.getRow=function(e,t){void 0===t&&(t=!1);var o=Math.floor(e/this.cacheParams.blockSize),i=this.getBlock(o);if(!i){if(t)return null;i=this.createBlock(o)}return i.getRow(e)},t.prototype.createBlock=function(e){var t=new c.InfiniteBlock(e,this.cacheParams);return this.context.wireBean(t),this.postCreateBlock(t),t},t.prototype.refreshCache=function(){this.forEachBlockInOrder(function(e){return e.setDirty()}),this.checkBlockToLoad()},n([a.Autowired("eventService"),r("design:type",l.EventService)],t.prototype,"eventService",void 0),n([a.Autowired("context"),r("design:type",a.Context)],t.prototype,"context",void 0),n([a.Autowired("columnApi"),r("design:type",f.ColumnApi)],t.prototype,"columnApi",void 0),n([a.Autowired("gridApi"),r("design:type",h.GridApi)],t.prototype,"gridApi",void 0),n([s(0,a.Qualifier("loggerFactory")),r("design:type",Function),r("design:paramtypes",[u.LoggerFactory]),r("design:returntype",void 0)],t.prototype,"setBeans",null),n([a.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],t.prototype,"init",null),t}(d.RowNodeCache);t.InfiniteCache=g},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),n=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=o(8),a=o(4),l=o(7),p=o(121),u=o(23),c=function(e){function t(t,o){var i=e.call(this,t,o)||this;return i.cacheParams=o,i}return i(t,e),t.prototype.createBlankRowNode=function(t){var o=e.prototype.createBlankRowNode.call(this,t);return o.uiLevel=0,this.setIndexAndTopOnRowNode(o,t),o},t.prototype.setDataAndId=function(e,t,o){s.Utils.exists(t)?e.setDataAndId(t,o.toString()):e.setDataAndId(void 0,void 0)},t.prototype.setRowNode=function(t,o){e.prototype.setRowNode.call(this,t,o),this.setIndexAndTopOnRowNode(o,t)},t.prototype.init=function(){e.prototype.init.call(this,{context:this.context,rowRenderer:this.rowRenderer})},t.prototype.getNodeIdPrefix=function(){return null},t.prototype.getRow=function(e){return this.getRowUsingLocalIndex(e)},t.prototype.setIndexAndTopOnRowNode=function(e,t){e.setRowIndex(t),e.rowTop=this.cacheParams.rowHeight*t},t.prototype.loadFromDatasource=function(){var e=this,t={startRow:this.getStartRow(),endRow:this.getEndRow(),successCallback:this.pageLoaded.bind(this,this.getVersion()),failCallback:this.pageLoadFailed.bind(this),sortModel:this.cacheParams.sortModel,filterModel:this.cacheParams.filterModel,context:this.gridOptionsWrapper.getContext()};if(s.Utils.missing(this.cacheParams.datasource.getRows))return void console.warn("ag-Grid: datasource is missing getRows method");s.Utils.getFunctionParameters(this.cacheParams.datasource.getRows).length>1&&(console.warn("ag-grid: It looks like your paging datasource is of the old type, taking more than one parameter."),console.warn("ag-grid: From ag-grid 1.9.0, now the getRows takes one parameter. See the documentation for details.")),setTimeout(function(){e.cacheParams.datasource.getRows(t)},0)},n([l.Autowired("gridOptionsWrapper"),r("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([l.Autowired("context"),r("design:type",l.Context)],t.prototype,"context",void 0),n([l.Autowired("rowRenderer"),r("design:type",u.RowRenderer)],t.prototype,"rowRenderer",void 0),n([l.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],t.prototype,"init",null),t}(p.RowNodeBlock);t.InfiniteBlock=c},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var n=o(8),r=o(30),s=o(36),a=function(e){function t(o,i){var n=e.call(this)||this;return n.version=0,n.state=t.STATE_DIRTY,n.rowNodeCacheParams=i,n.blockNumber=o,n.startRow=o*i.blockSize,n.endRow=n.startRow+i.blockSize,n}return i(t,e),t.prototype.isAnyNodeOpen=function(e){var t=!1;return this.forEachNodeCallback(function(e){e.expanded&&(t=!0)},e),t},t.prototype.forEachNodeCallback=function(e,t){for(var o=this.startRow;o<this.endRow;o++)if(o<t){var i=this.getRowUsingLocalIndex(o);e(i,o)}},t.prototype.forEachNode=function(e,t,o,i){this.forEachNodeCallback(function(o){e(o,t.next()),i&&o.childrenCache&&o.childrenCache.forEachNodeDeep(e,t)},o)},t.prototype.forEachNodeDeep=function(e,t,o){this.forEachNode(e,t,o,!0)},t.prototype.forEachNodeShallow=function(e,t,o){this.forEachNode(e,t,o,!1)},t.prototype.getVersion=function(){return this.version},t.prototype.getLastAccessed=function(){return this.lastAccessed},t.prototype.getRowUsingLocalIndex=function(e){this.lastAccessed=this.rowNodeCacheParams.lastAccessedSequence.next();var t=e-this.startRow;return this.rowNodes[t]},t.prototype.init=function(e){this.beans=e,this.createRowNodes()},t.prototype.getStartRow=function(){return this.startRow},t.prototype.getEndRow=function(){return this.endRow},t.prototype.getBlockNumber=function(){return this.blockNumber},t.prototype.setDirty=function(){this.version++,this.state=t.STATE_DIRTY},t.prototype.setDirtyAndPurge=function(){this.setDirty(),this.rowNodes.forEach(function(e){e.setData(null)})},t.prototype.getState=function(){return this.state},t.prototype.setRowNode=function(e,t){var o=e-this.startRow;this.rowNodes[o]=t},t.prototype.setBlankRowNode=function(e){var t=e-this.startRow,o=this.createBlankRowNode(e);return this.rowNodes[t]=o,o},t.prototype.setNewData=function(e,t){var o=this.setBlankRowNode(e);return this.setDataAndId(o,t,this.startRow+e),o},t.prototype.createBlankRowNode=function(e){var t=new r.RowNode;return this.beans.context.wireBean(t),t.setRowHeight(this.rowNodeCacheParams.rowHeight),t},t.prototype.createRowNodes=function(){this.rowNodes=[];for(var e=0;e<this.rowNodeCacheParams.blockSize;e++){var t=this.startRow+e,o=this.createBlankRowNode(t);this.rowNodes.push(o)}},t.prototype.load=function(){this.state=t.STATE_LOADING,this.loadFromDatasource()},t.prototype.pageLoadFailed=function(){this.state=t.STATE_FAILED;var e={type:t.EVENT_LOAD_COMPLETE,success:!1,page:this,lastRow:null};this.dispatchEvent(e)},t.prototype.populateWithRowData=function(e){var t=this,o=[];this.rowNodes.forEach(function(i,n){var r=e[n];i.stub&&o.push(i),t.setDataAndId(i,r,t.startRow+n)}),o.length>0&&this.beans.rowRenderer.redrawRows(o)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.rowNodes.forEach(function(e){e.childrenCache&&(e.childrenCache.destroy(),e.childrenCache=null)})},t.prototype.pageLoaded=function(e,o,i){e===this.version&&(this.state=t.STATE_LOADED,this.populateWithRowData(o)),i=n.Utils.cleanNumber(i);var r={type:t.EVENT_LOAD_COMPLETE,success:!0,page:this,lastRow:i};this.dispatchEvent(r)},t.EVENT_LOAD_COMPLETE="loadComplete",t.STATE_DIRTY="dirty",t.STATE_LOADING="loading",t.STATE_LOADED="loaded",t.STATE_FAILED="failed",t}(s.BeanStub);t.RowNodeBlock=a},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var n=o(8),r=o(36),s=o(121),a=function(e){function t(t){var o=e.call(this)||this;return o.maxRowFound=!1,o.blocks={},o.blockCount=0,o.virtualRowCount=t.initialRowCount,o.cacheParams=t,o}return i(t,e),t.prototype.destroy=function(){var t=this;e.prototype.destroy.call(this),this.forEachBlockInOrder(function(e){return t.destroyBlock(e)})},t.prototype.init=function(){var e=this;this.active=!0,this.addDestroyFunc(function(){return e.active=!1})},t.prototype.isActive=function(){return this.active},t.prototype.getVirtualRowCount=function(){return this.virtualRowCount},t.prototype.hack_setVirtualRowCount=function(e){this.virtualRowCount=e},t.prototype.isMaxRowFound=function(){return this.maxRowFound},t.prototype.onPageLoaded=function(e){this.isActive()&&(this.logger.log("onPageLoaded: page = "+e.page.getBlockNumber()+", lastRow = "+e.lastRow),this.cacheParams.rowNodeBlockLoader.loadComplete(),this.checkBlockToLoad(),e.success&&this.checkVirtualRowCount(e.page,e.lastRow))},t.prototype.purgeBlocksIfNeeded=function(e){var t=this;if(!(n.Utils.missing(this.cacheParams.maxBlocksInCache)||this.blockCount<=this.cacheParams.maxBlocksInCache)){var o=[];this.forEachBlockInOrder(function(t){t!==e&&o.push(t)}),o.sort(function(e,t){return t.getLastAccessed()-e.getLastAccessed()});var i=this.cacheParams.maxBlocksInCache-1;o.splice(0,i),o.forEach(function(e){e.isAnyNodeOpen(t.virtualRowCount)||t.removeBlockFromCache(e)})}},t.prototype.postCreateBlock=function(e){e.addEventListener(s.RowNodeBlock.EVENT_LOAD_COMPLETE,this.onPageLoaded.bind(this)),this.setBlock(e.getBlockNumber(),e),this.purgeBlocksIfNeeded(e),this.checkBlockToLoad()},t.prototype.removeBlockFromCache=function(e){e&&this.destroyBlock(e)},t.prototype.checkBlockToLoad=function(){this.cacheParams.rowNodeBlockLoader.checkBlockToLoad()},t.prototype.checkVirtualRowCount=function(e,t){if("number"==typeof t&&t>=0)this.virtualRowCount=t,this.maxRowFound=!0,this.onCacheUpdated();else if(!this.maxRowFound){var o=(e.getBlockNumber()+1)*this.cacheParams.blockSize,i=o+this.cacheParams.overflowSize;this.virtualRowCount<i?(this.virtualRowCount=i,this.onCacheUpdated()):this.cacheParams.dynamicRowHeight&&this.onCacheUpdated()}},t.prototype.setVirtualRowCount=function(e,t){this.virtualRowCount=e,n.Utils.exists(t)&&(this.maxRowFound=t),this.maxRowFound||this.virtualRowCount%this.cacheParams.blockSize==0&&this.virtualRowCount++,this.onCacheUpdated()},t.prototype.forEachNodeDeep=function(e,t){var o=this;this.forEachBlockInOrder(function(i){i.forEachNodeDeep(e,t,o.virtualRowCount)})},t.prototype.forEachBlockInOrder=function(e){var t=this.getBlockIdsSorted();this.forEachBlockId(t,e)},t.prototype.forEachBlockInReverseOrder=function(e){var t=this.getBlockIdsSorted().reverse();this.forEachBlockId(t,e)},t.prototype.forEachBlockId=function(e,t){var o=this;e.forEach(function(e){var i=o.blocks[e];t(i,e)})},t.prototype.getBlockIdsSorted=function(){var e=function(e,t){return e-t};return Object.keys(this.blocks).map(function(e){return parseInt(e)}).sort(e)},t.prototype.getBlock=function(e){return this.blocks[e]},t.prototype.setBlock=function(e,t){this.blocks[e]=t,this.blockCount++,this.cacheParams.rowNodeBlockLoader.addBlock(t)},t.prototype.destroyBlock=function(e){delete this.blocks[e.getBlockNumber()],e.destroy(),this.blockCount--,this.cacheParams.rowNodeBlockLoader.removeBlock(e)},t.prototype.onCacheUpdated=function(){if(this.isActive()){var e={type:t.EVENT_CACHE_UPDATED};this.dispatchEvent(e)}},t.prototype.purgeCache=function(){var e=this;this.forEachBlockInOrder(function(t){return e.removeBlockFromCache(t)}),this.onCacheUpdated()},t.prototype.getRowNodesInRange=function(e,t){var o=this,i=[],r=-1,s=!1,a=new n.NumberSequence;n.Utils.missing(e)&&(s=!0);var l=!1;return this.forEachBlockInOrder(function(n,p){if(!l){if(s&&r+1!==p)return void(l=!0);r=p,n.forEachNodeShallow(function(o){var n=o===e||o===t;(s||n)&&i.push(o),n&&(s=!s)},a,o.virtualRowCount)}}),l||s?[]:i},t.EVENT_CACHE_UPDATED="cacheUpdated",t}(r.BeanStub);t.RowNodeCache=a},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},r=this&&this.__param||function(e,t){return function(o,i){t(o,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(121),a=o(6),l=o(7),p=o(8),u=function(){function e(e){this.activeBlockLoadsCount=0,this.blocks=[],this.active=!0,this.maxConcurrentRequests=e}return e.prototype.setBeans=function(e){this.logger=e.create("RowNodeBlockLoader")},e.prototype.addBlock=function(e){this.blocks.push(e)},e.prototype.removeBlock=function(e){p._.removeFromArray(this.blocks,e)},e.prototype.destroy=function(){this.active=!1},e.prototype.loadComplete=function(){this.activeBlockLoadsCount--},e.prototype.checkBlockToLoad=function(){if(this.active){if(this.printCacheStatus(),this.activeBlockLoadsCount>=this.maxConcurrentRequests)return void this.logger.log("checkBlockToLoad: max loads exceeded");var e=null;this.blocks.forEach(function(t){t.getState()===s.RowNodeBlock.STATE_DIRTY&&(e=t)}),e?(e.load(),this.activeBlockLoadsCount++,this.logger.log("checkBlockToLoad: loading page "+e.getBlockNumber()),this.printCacheStatus()):this.logger.log("checkBlockToLoad: no pages to load")}},e.prototype.getBlockState=function(){var e={};return this.blocks.forEach(function(t){var o=t.getNodeIdPrefix(),i={blockNumber:t.getBlockNumber(),startRow:t.getStartRow(),endRow:t.getEndRow(),pageStatus:t.getState()};p._.exists(o)?e[o+t.getBlockNumber()]=i:e[t.getBlockNumber()]=i}),e},e.prototype.printCacheStatus=function(){this.logger.isLogging()&&this.logger.log("printCacheStatus: activePageLoadsCount = "+this.activeBlockLoadsCount+", blocks = "+JSON.stringify(this.getBlockState()))},i([r(0,l.Qualifier("loggerFactory")),n("design:type",Function),n("design:paramtypes",[a.LoggerFactory]),n("design:returntype",void 0)],e.prototype,"setBeans",null),e}();t.RowNodeBlockLoader=u},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r,s=o(8),a=o(9),l=o(4),p=o(15),u=o(51),c=o(30),d=o(5),h=o(11),f=o(7),g=o(27),y=o(125),v=o(126),m=o(31),C=o(32),E=o(12);!function(e){e[e.Normal=0]="Normal",e[e.AfterFilter=1]="AfterFilter",e[e.AfterFilterAndSort=2]="AfterFilterAndSort",e[e.PivotNodes=3]="PivotNodes"}(r||(r={}));var w=function(){function e(){}return e.prototype.init=function(){this.eventService.addModalPriorityEventListener(h.Events.EVENT_COLUMN_EVERYTHING_CHANGED,this.refreshModel.bind(this,{step:a.Constants.STEP_EVERYTHING})),this.eventService.addModalPriorityEventListener(h.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,this.refreshModel.bind(this,{step:a.Constants.STEP_EVERYTHING})),this.eventService.addModalPriorityEventListener(h.Events.EVENT_COLUMN_VALUE_CHANGED,this.onValueChanged.bind(this)),this.eventService.addModalPriorityEventListener(h.Events.EVENT_COLUMN_PIVOT_CHANGED,this.refreshModel.bind(this,{step:a.Constants.STEP_PIVOT})),this.eventService.addModalPriorityEventListener(h.Events.EVENT_ROW_GROUP_OPENED,this.onRowGroupOpened.bind(this)),this.eventService.addModalPriorityEventListener(h.Events.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.eventService.addModalPriorityEventListener(h.Events.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.eventService.addModalPriorityEventListener(h.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.refreshModel.bind(this,{step:a.Constants.STEP_PIVOT})),this.gridOptionsWrapper.addEventListener(l.GridOptionsWrapper.PROP_GROUP_REMOVE_SINGLE_CHILDREN,this.refreshModel.bind(this,{step:a.Constants.STEP_MAP,keepRenderedRows:!0,animate:!0})),this.rootNode=new c.RowNode,this.nodeManager=new y.InMemoryNodeManager(this.rootNode,this.gridOptionsWrapper,this.context,this.eventService,this.columnController),this.context.wireBean(this.rootNode)},e.prototype.isLastRowFound=function(){return!0},e.prototype.getRowCount=function(){return this.rowsToDisplay?this.rowsToDisplay.length:0},e.prototype.getRowBounds=function(e){if(s.Utils.missing(this.rowsToDisplay))return null;var t=this.rowsToDisplay[e];return t?{rowTop:t.rowTop,rowHeight:t.rowHeight}:null},e.prototype.onRowGroupOpened=function(){var e=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:a.Constants.STEP_MAP,keepRenderedRows:!0,animate:e})},e.prototype.onFilterChanged=function(){var e=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:a.Constants.STEP_FILTER,keepRenderedRows:!0,animate:e})},e.prototype.onSortChanged=function(){if(!this.gridOptionsWrapper.isEnableServerSideSorting()){var e=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:a.Constants.STEP_SORT,keepRenderedRows:!0,animate:e,keepEditingRows:!0})}},e.prototype.getType=function(){return a.Constants.ROW_MODEL_TYPE_IN_MEMORY},e.prototype.onValueChanged=function(){this.columnController.isPivotActive()?this.refreshModel({step:a.Constants.STEP_PIVOT}):this.refreshModel({step:a.Constants.STEP_AGGREGATE})},e.prototype.createChangePath=function(e){if(!e)return null;var t=this.columnController.getValueColumns();return t&&0!==t.length?new v.ChangedPath(!1):null},e.prototype.refreshModel=function(e){var t=this,o=this.createChangePath(e.rowNodeTransaction);switch(e.step){case a.Constants.STEP_EVERYTHING:this.doRowGrouping(e.groupState,e.rowNodeTransaction,o);case a.Constants.STEP_FILTER:this.doFilter();case a.Constants.STEP_PIVOT:this.doPivot();case a.Constants.STEP_AGGREGATE:this.doAggregate(o);case a.Constants.STEP_SORT:this.doSort();case a.Constants.STEP_MAP:this.doRowsToDisplay()}var i={type:h.Events.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,animate:e.animate,keepRenderedRows:e.keepRenderedRows,newData:e.newData,newPage:!1};this.eventService.dispatchEvent(i),this.$scope&&setTimeout(function(){t.$scope.$apply()},0)},e.prototype.isEmpty=function(){var e;return e=s.Utils.exists(this.gridOptionsWrapper.getNodeChildDetailsFunc())?s.Utils.missing(this.rootNode.childrenAfterGroup)||0===this.rootNode.childrenAfterGroup.length:s.Utils.missing(this.rootNode.allLeafChildren)||0===this.rootNode.allLeafChildren.length,s.Utils.missing(this.rootNode)||e||!this.columnController.isReady()},e.prototype.isRowsToRender=function(){return s.Utils.exists(this.rowsToDisplay)&&this.rowsToDisplay.length>0},e.prototype.getNodesInRangeForSelection=function(e,t){var o,i=!t,n=!1,r=[],s=this.gridOptionsWrapper.isGroupSelectsChildren();return this.forEachNodeAfterFilterAndSort(function(a){var l=i&&!n;if(i||a!==t&&a!==e||(i=!0),!(a.group&&s)){var p=i&&!n,u=a.isParentOfNode(o);(p||u)&&r.push(a)}l&&(a!==t&&a!==e||(n=!0,o=a===t?t:e))}),r},e.prototype.setDatasource=function(e){console.error("ag-Grid: should never call setDatasource on inMemoryRowController")},e.prototype.getTopLevelNodes=function(){return this.rootNode?this.rootNode.childrenAfterGroup:null},e.prototype.getRootNode=function(){return this.rootNode},e.prototype.getRow=function(e){return this.rowsToDisplay[e]},e.prototype.isRowPresent=function(e){return this.rowsToDisplay.indexOf(e)>=0},e.prototype.getVirtualRowCount=function(){return console.warn("ag-Grid: rowModel.getVirtualRowCount() is not longer a function, use rowModel.getRowCount() instead"),this.getPageLastRow()},e.prototype.getPageFirstRow=function(){return 0},e.prototype.getPageLastRow=function(){return this.rowsToDisplay?this.rowsToDisplay.length-1:0},e.prototype.getRowIndexAtPixel=function(e){if(this.isEmpty())return-1;var t=0,o=this.rowsToDisplay.length-1;if(e<=0)return 0;if(this.rowsToDisplay[this.rowsToDisplay.length-1].rowTop<=e)return this.rowsToDisplay.length-1;for(;;){var i=Math.floor((t+o)/2),n=this.rowsToDisplay[i];if(this.isRowInPixel(n,e))return i;n.rowTop<e?t=i+1:n.rowTop>e&&(o=i-1)}},e.prototype.isRowInPixel=function(e,t){var o=e.rowTop,i=e.rowTop+e.rowHeight;return o<=t&&i>t},e.prototype.getCurrentPageHeight=function(){if(this.rowsToDisplay&&this.rowsToDisplay.length>0){var e=this.rowsToDisplay[this.rowsToDisplay.length-1];return e.rowTop+e.rowHeight}return 0},e.prototype.forEachLeafNode=function(e){this.rootNode.allLeafChildren&&this.rootNode.allLeafChildren.forEach(function(t,o){return e(t,o)})},e.prototype.forEachNode=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterGroup,e,r.Normal,0)},e.prototype.forEachNodeAfterFilter=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterFilter,e,r.AfterFilter,0)},e.prototype.forEachNodeAfterFilterAndSort=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterSort,e,r.AfterFilterAndSort,0)},e.prototype.forEachPivotNode=function(e){this.recursivelyWalkNodesAndCallback([this.rootNode],e,r.PivotNodes,0)},e.prototype.recursivelyWalkNodesAndCallback=function(e,t,o,i){if(e)for(var n=0;n<e.length;n++){var s=e[n];if(t(s,i++),s.group){var a=void 0;switch(o){case r.Normal:a=s.childrenAfterGroup;break;case r.AfterFilter:a=s.childrenAfterFilter;break;case r.AfterFilterAndSort:a=s.childrenAfterSort;break;case r.PivotNodes:a=s.leafGroup?null:s.childrenAfterSort}a&&(i=this.recursivelyWalkNodesAndCallback(a,t,o,i))}}return i},e.prototype.doAggregate=function(e){this.aggregationStage&&this.aggregationStage.execute({rowNode:this.rootNode,changedPath:e})},e.prototype.expandOrCollapseAll=function(e){function t(o){o&&o.forEach(function(o){o.group&&(o.expanded=e,t(o.childrenAfterGroup))})}this.rootNode&&t(this.rootNode.childrenAfterGroup),this.refreshModel({step:a.Constants.STEP_MAP})},e.prototype.doSort=function(){this.sortStage.execute({rowNode:this.rootNode})},e.prototype.doRowGrouping=function(e,t,o){s.Utils.exists(this.gridOptionsWrapper.getNodeChildDetailsFunc())||(this.groupStage?(t?this.groupStage.execute({rowNode:this.rootNode,rowNodeTransaction:t,changedPath:o}):(this.selectionController.removeGroupsFromSelection(),this.groupStage.execute({rowNode:this.rootNode}),this.restoreGroupState(e)),this.gridOptionsWrapper.isGroupSelectsChildren()&&this.selectionController.updateGroupsFromChildrenSelections()):this.rootNode.childrenAfterGroup=this.rootNode.allLeafChildren)},e.prototype.restoreGroupState=function(e){e&&s.Utils.traverseNodesWithKey(this.rootNode.childrenAfterGroup,function(t,o){"boolean"==typeof e[o]&&(t.expanded=e[o])})},e.prototype.doFilter=function(){this.filterStage.execute({rowNode:this.rootNode})},e.prototype.doPivot=function(){this.pivotStage&&this.pivotStage.execute({rowNode:this.rootNode})},e.prototype.getGroupState=function(){if(!this.rootNode.childrenAfterGroup||!this.gridOptionsWrapper.isRememberGroupStateWhenNewData())return null;var e={};return s.Utils.traverseNodesWithKey(this.rootNode.childrenAfterGroup,function(t,o){return e[o]=t.expanded}),e},e.prototype.getCopyOfNodesMap=function(){return this.nodeManager.getCopyOfNodesMap()},e.prototype.getRowNode=function(e){return this.nodeManager.getRowNode(e)},e.prototype.setRowData=function(e){var t=this.getGroupState();this.nodeManager.setRowData(e);var o={type:h.Events.EVENT_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o),this.refreshModel({step:a.Constants.STEP_EVERYTHING,groupState:t,newData:!0})},e.prototype.updateRowData=function(e){this.valueCache.onDataChanged();var t=this.nodeManager.updateRowData(e);this.refreshModel({step:a.Constants.STEP_EVERYTHING,rowNodeTransaction:t,keepRenderedRows:!0,animate:!0,keepEditingRows:!0});var o={type:h.Events.EVENT_ROW_DATA_UPDATED,api:this.gridApi,columnApi:this.columnApi};return this.eventService.dispatchEvent(o),t},e.prototype.doRowsToDisplay=function(){this.rowsToDisplay=this.flattenStage.execute({rowNode:this.rootNode})},e.prototype.onRowHeightChanged=function(){this.refreshModel({step:a.Constants.STEP_MAP,keepRenderedRows:!0,keepEditingRows:!0})},e.prototype.resetRowHeights=function(){this.forEachNode(function(e){return e.setRowHeight(null)}),this.onRowHeightChanged()},i([f.Autowired("gridOptionsWrapper"),n("design:type",l.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([f.Autowired("columnController"),n("design:type",p.ColumnController)],e.prototype,"columnController",void 0),i([f.Autowired("filterManager"),n("design:type",u.FilterManager)],e.prototype,"filterManager",void 0),i([f.Autowired("$scope"),n("design:type",Object)],e.prototype,"$scope",void 0),i([f.Autowired("selectionController"),n("design:type",g.SelectionController)],e.prototype,"selectionController",void 0),i([f.Autowired("eventService"),n("design:type",d.EventService)],e.prototype,"eventService",void 0),i([f.Autowired("context"),n("design:type",f.Context)],e.prototype,"context",void 0),i([f.Autowired("valueService"),n("design:type",m.ValueService)],e.prototype,"valueService",void 0),i([f.Autowired("valueCache"),n("design:type",C.ValueCache)],e.prototype,"valueCache",void 0),i([f.Autowired("columnApi"),n("design:type",p.ColumnApi)],e.prototype,"columnApi",void 0),i([f.Autowired("gridApi"),n("design:type",E.GridApi)],e.prototype,"gridApi",void 0),i([f.Autowired("filterStage"),n("design:type",Object)],e.prototype,"filterStage",void 0),i([f.Autowired("sortStage"),n("design:type",Object)],e.prototype,"sortStage",void 0),i([f.Autowired("flattenStage"),n("design:type",Object)],e.prototype,"flattenStage",void 0),i([f.Optional("groupStage"),n("design:type",Object)],e.prototype,"groupStage",void 0),i([f.Optional("aggregationStage"),n("design:type",Object)],e.prototype,"aggregationStage",void 0),i([f.Optional("pivotStage"),n("design:type",Object)],e.prototype,"pivotStage",void 0),i([f.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),e=i([f.Bean("rowModel")],e)}();t.InMemoryRowModel=w},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(30),n=o(8),r=function(){function e(t,o,i,n,r){this.nextId=0,this.allNodesMap={},this.rootNode=t,this.gridOptionsWrapper=o,this.context=i,this.eventService=n,this.columnController=r,this.rootNode.group=!0,this.rootNode.level=-1,this.rootNode.id=e.ROOT_NODE_ID,this.rootNode.allLeafChildren=[],this.rootNode.childrenAfterGroup=[],this.rootNode.childrenAfterSort=[],this.rootNode.childrenAfterFilter=[]}return e.prototype.getCopyOfNodesMap=function(){return n.Utils.cloneObject(this.allNodesMap)},e.prototype.getRowNode=function(e){return this.allNodesMap[e]},e.prototype.setRowData=function(t){if(this.rootNode.childrenAfterFilter=null,this.rootNode.childrenAfterGroup=null,this.rootNode.childrenAfterSort=null,this.rootNode.childrenMapped=null,this.nextId=0,this.allNodesMap={},!t)return this.rootNode.allLeafChildren=[],void(this.rootNode.childrenAfterGroup=[]);this.getNodeChildDetails=this.gridOptionsWrapper.getNodeChildDetailsFunc(),this.suppressParentsInRowNodes=this.gridOptionsWrapper.isSuppressParentsInRowNodes(),this.doesDataFlower=this.gridOptionsWrapper.getDoesDataFlowerFunc();var o=n.Utils.exists(this.getNodeChildDetails),i=this.recursiveFunction(t,null,e.TOP_LEVEL);o?(this.rootNode.childrenAfterGroup=i,this.setLeafChildren(this.rootNode)):this.rootNode.allLeafChildren=i},e.prototype.updateRowData=function(e){var t=this;if(this.isRowsAlreadyGrouped())return null;var o=e.add,i=e.addIndex,r=e.remove,s=e.update,a={remove:[],update:[],add:[]};if(n.Utils.exists(o)){"number"==typeof i&&i>=0?o.reverse().forEach(function(e){var o=t.addRowNode(e,i);a.add.push(o)}):o.forEach(function(e){var o=t.addRowNode(e);a.add.push(o)})}return n.Utils.exists(r)&&r.forEach(function(e){var o=t.updatedRowNode(e,!1);o&&a.remove.push(o)}),n.Utils.exists(s)&&s.forEach(function(e){var o=t.updatedRowNode(e,!0);o&&a.update.push(o)}),a},e.prototype.addRowNode=function(t,o){var i=this.createNode(t,null,e.TOP_LEVEL);return n.Utils.exists(o)?n.Utils.insertIntoArray(this.rootNode.allLeafChildren,i,o):this.rootNode.allLeafChildren.push(i),i},e.prototype.updatedRowNode=function(e,t){var o,i=this.gridOptionsWrapper.getRowNodeIdFunc();if(n.Utils.exists(i)){var r=i(e);if(!(o=this.allNodesMap[r]))return console.error("ag-Grid: could not find row id="+r+", data item was not found for this id"),null}else if(!(o=n.Utils.find(this.rootNode.allLeafChildren,function(t){return t.data===e})))return console.error("ag-Grid: could not find data item as object was not found",e),null;return t?o.updateData(e):(o.setSelected(!1),n.Utils.removeFromArray(this.rootNode.allLeafChildren,o),this.allNodesMap[o.id]=void 0),o},e.prototype.recursiveFunction=function(e,t,o){var i=this;if("string"==typeof e)return void console.warn("ag-Grid: rowData must be an array, however you passed in a string. If you are loading JSON, make sure you convert the JSON string to JavaScript objects first");var n=[];return e.forEach(function(e){var r=i.createNode(e,t,o);n.push(r)}),n},e.prototype.createNode=function(e,t,o){var n=new i.RowNode;this.context.wireBean(n);var r=this.getNodeChildDetails?this.getNodeChildDetails(e):null;return r&&r.group?(n.group=!0,n.childrenAfterGroup=this.recursiveFunction(r.children,n,o+1),n.expanded=!0===r.expanded,n.field=r.field,n.key=r.key,n.canFlower=!1,this.setLeafChildren(n)):(n.group=!1,n.canFlower=!!this.doesDataFlower&&this.doesDataFlower(e),n.canFlower&&(n.expanded=this.isExpanded(o))),t&&!this.suppressParentsInRowNodes&&(n.parent=t),n.level=o,n.setDataAndId(e,this.nextId.toString()),this.allNodesMap[n.id]=n,this.nextId++,n},e.prototype.isExpanded=function(e){var t=this.gridOptionsWrapper.getGroupDefaultExpanded();return-1===t||e<t},e.prototype.setLeafChildren=function(e){e.allLeafChildren=[],e.childrenAfterGroup&&e.childrenAfterGroup.forEach(function(t){t.group?t.allLeafChildren&&t.allLeafChildren.forEach(function(t){return e.allLeafChildren.push(t)}):e.allLeafChildren.push(t)})},e.prototype.insertItemsAtIndex=function(t,o){if(this.isRowsAlreadyGrouped())return null;var i=this.rootNode.allLeafChildren;if(t>i.length)return void console.warn("ag-Grid: invalid index "+t+", max index is "+i.length);for(var r=[],s=o.length-1;s>=0;s--){var a=o[s],l=this.createNode(a,null,e.TOP_LEVEL);n.Utils.insertIntoArray(i,l,t),r.push(l)}return r.length>0?r:null},e.prototype.removeItems=function(e){var t=this;if(!this.isRowsAlreadyGrouped()){var o=this.rootNode.allLeafChildren,i=[];return e.forEach(function(e){var n=o.indexOf(e);n>=0&&(e.setSelected(!1),o.splice(n,1),t.allNodesMap[e.id]=void 0),i.push(e)}),i.length>0?i:null}},e.prototype.addItems=function(e){var t=this.rootNode.allLeafChildren;return this.insertItemsAtIndex(t.length,e)},e.prototype.isRowsAlreadyGrouped=function(){return!!n.Utils.exists(this.gridOptionsWrapper.getNodeChildDetailsFunc())&&(console.warn("ag-Grid: adding and removing rows is not supported when using nodeChildDetailsFunc, ie it is not supported if providing groups"),!0)},e.TOP_LEVEL=0,e.ROOT_NODE_ID="ROOT_NODE_ID",e}();t.InMemoryNodeManager=r},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e){this.nodeIdsToBoolean={},this.nodeIdsToColumns={},this.keepingColumns=e}return e.prototype.addParentNode=function(e,t){for(var o=this,i=e;i;)this.nodeIdsToBoolean[i.id]=!0,this.keepingColumns&&t&&(this.nodeIdsToColumns[i.id]||(this.nodeIdsToColumns[i.id]={}),t.forEach(function(e){return o.nodeIdsToColumns[i.id][e.getId()]=!0})),i=i.parent},e.prototype.isInPath=function(e){return this.nodeIdsToBoolean[e.id]},e.prototype.getValueColumnsForNode=function(e,t){if(!this.keepingColumns)return t;var o=this.nodeIdsToColumns[e.id];return t.filter(function(e){return o[e.getId()]})},e.prototype.getNotValueColumnsForNode=function(e,t){if(!this.keepingColumns)return null;var o=this.nodeIdsToColumns[e.id];return t.filter(function(e){return!o[e.getId()]})},e}();t.ChangedPath=o},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){}return e.prototype.dateComponent=function(e){return e.dateComponent},e.prototype.colDefFloatingCellRenderer=function(e){return e.pinnedRowCellRenderer},e.prototype.colDefCellRenderer=function(e){return e.cellRenderer},e.prototype.colDefCellEditor=function(e){return e.cellEditor},e.prototype.colDefFilter=function(e){return e.filter},e.prototype.gridOptionsFullWidthCellRenderer=function(e){return e.fullWidthCellRenderer},e.prototype.gridOptionsGroupRowRenderer=function(e){return e.groupRowRenderer},e.prototype.gridOptionsGroupRowInnerRenderer=function(e){return e.groupRowInnerRenderer},e.prototype.setTimeout=function(e,t){setTimeout(e,t)},e}();t.BaseFrameworkFactory=o},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s};Object.defineProperty(t,"__esModule",{value:!0});var n=o(7),r="\r\n",s=function(){function e(){}return e.prototype.createXml=function(e,t){var o=this,i="";e.properties&&(e.properties.prefixedAttributes&&e.properties.prefixedAttributes.forEach(function(e){Object.keys(e.map).forEach(function(n){i+=o.returnAttributeIfPopulated(e.prefix+n,e.map[n],t)})}),e.properties.rawMap&&Object.keys(e.properties.rawMap).forEach(function(n){i+=o.returnAttributeIfPopulated(n,e.properties.rawMap[n],t)}));var n="<"+e.name+i;return e.children||null!=e.textNode?null!=e.textNode?n+">"+e.textNode+"</"+e.name+">"+r:(n+=">"+r,e.children.forEach(function(e){n+=o.createXml(e,t)}),n+"</"+e.name+">"+r):n+"/>"+r},e.prototype.returnAttributeIfPopulated=function(e,t,o){if(!t)return"";var i=t;return"boolean"==typeof t&&o&&(i=o(t)),i='"'+i+'"'," "+e+"="+i},e=i([n.Bean("xmlFactory")],e)}();t.XmlFactory=s},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(30),s=o(125),a=o(4),l=o(5),p=o(7),u=o(15),c=function(){function e(){}return e.prototype.create=function(e){var t=new r.RowNode,o=new s.InMemoryNodeManager(t,this.gridOptionsWrapper,this.context,this.eventService,this.columnController);return this.context.wireBean(t),o.setRowData(e),t},i([p.Autowired("gridOptionsWrapper"),n("design:type",a.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([p.Autowired("eventService"),n("design:type",l.EventService)],e.prototype,"eventService",void 0),i([p.Autowired("context"),n("design:type",p.Context)],e.prototype,"context",void 0),i([p.Autowired("columnController"),n("design:type",u.ColumnController)],e.prototype,"columnController",void 0),e=i([p.Bean("rowNodeFactory")],e)}();t.RowNodeFactory=c},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),n=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=o(7),a=o(4),l=o(126),p=o(23),u=o(5),c=o(9),d=o(36),h=o(11),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.init=function(){this.rowModel.getType()===c.Constants.ROW_MODEL_TYPE_IN_MEMORY&&(this.inMemoryRowModel=this.rowModel),this.addDestroyableEventListener(this.eventService,h.Events.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged.bind(this))},t.prototype.onCellValueChanged=function(e){this.doChangeDetection(e.node,e.column)},t.prototype.doChangeDetection=function(e,t){if(!this.gridOptionsWrapper.isSuppressChangeDetection()){if(this.inMemoryRowModel){var o=void 0;if(e.parent){var i=this.gridOptionsWrapper.isAggregateOnlyChangedColumns();o=new l.ChangedPath(i),o.addParentNode(e.parent,[t])}this.inMemoryRowModel.doAggregate(o)}this.rowRenderer.refreshCells()}},n([s.Autowired("gridOptionsWrapper"),r("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([s.Autowired("rowModel"),r("design:type",Object)],t.prototype,"rowModel",void 0),n([s.Autowired("rowRenderer"),r("design:type",p.RowRenderer)],t.prototype,"rowRenderer",void 0),n([s.Autowired("eventService"),r("design:type",u.EventService)],t.prototype,"eventService",void 0),n([s.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],t.prototype,"init",null),t=n([s.Bean("changeDetectionService")],t)}(d.BeanStub);t.ChangeDetectionService=f},function(e,t,o){"use strict";function i(){if(console.warn("ag-grid: initialiseAgGridWithWebComponents is deprecated. Please use the ag-grid-webcomponent dependency instead. "),!a){a=!0,"undefined"!=typeof document&&document.registerElement||console.error("ag-Grid: unable to find document.registerElement() function, unable to initialise ag-Grid as a Web Component");var e=Object.create(HTMLElement.prototype);r.ComponentUtil.ALL_PROPERTIES.forEach(function(t){Object.defineProperty(e,t,{set:function(e){this.__agGridSetProperty(t,e)},get:function(){return this.__agGridGetProperty(t)},enumerable:!0,configurable:!0})});var t=e;t.__agGridSetProperty=function(e,t){this.__attributes||(this.__attributes={}),this.__attributes[e]=t;var o={};o[e]={currentValue:t},this.onChange(o)},t.onChange=function(e){this._initialised&&r.ComponentUtil.processOnChange(e,this._gridOptions,this.api,this.columnApi)},t.__agGridGetProperty=function(e){return this.__attributes||(this.__attributes={}),this.__attributes[e]},t.setGridOptions=function(e){var t=this.globalEventListener.bind(this);this._gridOptions=r.ComponentUtil.copyAttributesToGridOptions(e,this);var o={globalEventListener:t};this._agGrid=new s.Grid(this,this._gridOptions,o),this.api=e.api,this.columnApi=e.columnApi,this._initialised=!0},t.createdCallback=function(){for(var e=0;e<this.attributes.length;e++){var t=this.attributes[e];this.setPropertyFromAttribute(t)}},t.setPropertyFromAttribute=function(e){var t=n(e.nodeName),o=e.nodeValue;r.ComponentUtil.ALL_PROPERTIES.indexOf(t)>=0&&(this[t]=o)},t.attachedCallback=function(e){},t.detachedCallback=function(e){},t.attributeChangedCallback=function(e){var t=this.attributes[e];this.setPropertyFromAttribute(t)},t.globalEventListener=function(e,t){var o=e.toLowerCase(),i=new Event(o);i.agGridDetails=t,this.dispatchEvent(i);var n="on"+o;"function"==typeof this[n]&&this[n](i)},document.registerElement("ag-grid",{prototype:e})}}function n(e){if("string"==typeof e){return e.replace(/-([a-z])/g,function(e){return e[1].toUpperCase()})}return e}Object.defineProperty(t,"__esModule",{value:!0});var r=o(10),s=o(111),a=!1;t.initialiseAgGridWithWebComponents=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(8),n=function(){function e(t){var o=this;this.items=[],this.params=t,this.eGui=document.createElement("div"),this.eGui.innerHTML=e.TEMPLATE,this.eHeader=this.eGui.querySelector("#tabHeader"),this.eBody=this.eGui.querySelector("#tabBody"),i.Utils.addCssClass(this.eGui,t.cssClass),t.items&&t.items.forEach(function(e){return o.addItem(e)})}return e.prototype.setAfterAttachedParams=function(e){this.afterAttachedParams=e},e.prototype.getMinWidth=function(){var e=document.createElement("span");e.style.position="fixed",this.eGui.appendChild(e);var t=0;return this.items.forEach(function(o){i.Utils.removeAllChildren(e);var n=o.tabbedItem.body.cloneNode(!0);e.appendChild(n),t<e.offsetWidth&&(t=e.offsetWidth)}),this.eGui.removeChild(e),t},e.prototype.showFirstItem=function(){this.items.length>0&&this.showItemWrapper(this.items[0])},e.prototype.addItem=function(e){var t=document.createElement("span");t.appendChild(e.title),i.Utils.addCssClass(t,"ag-tab"),this.eHeader.appendChild(t);var o={tabbedItem:e,eHeaderButton:t};this.items.push(o),t.addEventListener("click",this.showItemWrapper.bind(this,o))},e.prototype.showItem=function(e){var t=i.Utils.find(this.items,function(t){return t.tabbedItem===e});t&&this.showItemWrapper(t)},e.prototype.showItemWrapper=function(e){if(this.params.onItemClicked&&this.params.onItemClicked({item:e.tabbedItem}),this.activeItem===e)return void i.Utils.callIfPresent(this.params.onActiveItemClicked);i.Utils.removeAllChildren(this.eBody),this.eBody.appendChild(e.tabbedItem.body),this.activeItem&&i.Utils.removeCssClass(this.activeItem.eHeaderButton,"ag-tab-selected"),i.Utils.addCssClass(e.eHeaderButton,"ag-tab-selected"),this.activeItem=e,e.tabbedItem.afterAttachedCallback&&e.tabbedItem.afterAttachedCallback(this.afterAttachedParams)},e.prototype.getGui=function(){return this.eGui},e.TEMPLATE='<div><div id="tabHeader" class="ag-tab-header"></div><div id="tabBody" class="ag-tab-body"></div></div>',e}();t.TabbedLayout=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){this.isLayoutPanel=!0,this.childPanels=[],this.eGui=document.createElement("div"),this.eGui.style.height="100%"}return e.prototype.addPanel=function(e,t){var o;e.isLayoutPanel?(this.childPanels.push(e),o=e.getGui()):o=e,t&&(o.style.height=t),this.eGui.appendChild(o)},e.prototype.getGui=function(){return this.eGui},e.prototype.doLayout=function(){for(var e=0;e<this.childPanels.length;e++)this.childPanels[e].doLayout()},e}();t.VerticalStack=o},function(e,t){"use strict";function o(e){var t=new i,o=new XMLHttpRequest;return o.open("GET",e.url),o.send(),o.onreadystatechange=function(){if(4==o.readyState&&200==o.status){var e=JSON.parse(o.responseText);t.resolve(e)}},t}Object.defineProperty(t,"__esModule",{value:!0}),t.simpleHttpRequest=o;var i=function(){function e(){}return e.prototype.then=function(e){this.thenFunc=e},e.prototype.resolve=function(e){this.thenFunc&&this.thenFunc(e)},e}();t.Promise=i},function(e,t,o){"use strict";function i(e,t,o,i,r){void 0===r&&(r=!1),console.warn("ag-Grid: Since ag-grid 11.0.0 defaultGroupComparator is not necessary. You can remove this from your colDef");var s=n.Utils.exists(o)&&o.group,a=n.Utils.exists(i)&&i.group,l=s&&a,p=!s&&!a;return l?n.Utils.defaultComparator(o.key,i.key,r):p?n.Utils.defaultComparator(e,t,r):s?1:-1}Object.defineProperty(t,"__esModule",{value:!0});var n=o(8);t.defaultGroupComparator=i},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){}return e.prototype.wrap=function(e,t,o){var i=this,n=this.createWrapper(e);return t.forEach(function(e){i.createMethod(n,e,!0)}),o&&o.forEach(function(e){i.createMethod(n,e,!1)}),n},e.prototype.createMethod=function(e,t,o){e.addMethod(t,this.createMethodProxy(e,t,o))},e.prototype.createMethodProxy=function(e,t,o){return function(){return e.hasMethod(t)?e.callMethod(t,arguments):(o&&console.warn("ag-Grid: Framework component is missing the method "+t+"()"),null)}},e}();t.BaseComponentWrapper=o},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(2),s=o(138),a=o(141),l=o(142),p=o(143),u=function(){function e(){}return e.prototype.showMenuAfterMouseEvent=function(e,t,o){var i=this;console.log("event = ",t),this.showMenu(e,function(n){i.popupService.positionPopupUnderMouseEvent({column:e,type:"columnMenu",mouseEvent:t,ePopup:n.getGui()}),o&&n.showTab(o)},o)},e.prototype.showMenuAfterButtonClick=function(e,t,o,i){var n=this;this.showMenu(e,function(i){n.popupService.positionPopupUnderComponent({column:e,type:"columnMenu",eventSource:t,ePopup:i.getGui(),nudgeX:-9,nudgeY:-26,minWidth:i.getMinWidth(),keepWithinBounds:!0}),o&&i.showTab(o)},o,i)},e.prototype.showMenu=function(e,t,o,i){var n=this,r=new c(e,this.lastSelectedTab,i);this.context.wireBean(r);var s=r.getGui(),a=this.popupService.addAsModalPopup(s,!0,function(){r.destroy(),e.setMenuVisible(!1)});t(r),r.afterGuiAttached({hidePopup:a}),o||r.showTabBasedOnPreviousSelection(),r.addEventListener(c.EVENT_TAB_SELECTED,function(e){n.lastSelectedTab=e.key}),e.setMenuVisible(!0)},e.prototype.isMenuEnabled=function(e){return e.getMenuTabs(c.TABS_DEFAULT).length>0},i([r.Autowired("context"),n("design:type",r.Context)],e.prototype,"context",void 0),i([r.Autowired("popupService"),n("design:type",r.PopupService)],e.prototype,"popupService",void 0),i([r.Autowired("gridOptionsWrapper"),n("design:type",r.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),e=i([r.Bean("menuFactory")],e)}();t.EnterpriseMenuFactory=u;var c=function(){function e(t,o,i){var n=this;this.localEventService=new r.EventService,this.destroyFunctions=[],this.tabFactories={},this.includeChecks={},this.column=t,this.initialSelection=o,this.tabFactories[e.TAB_GENERAL]=this.createMainPanel.bind(this),this.tabFactories[e.TAB_FILTER]=this.createFilterPanel.bind(this),this.tabFactories[e.TAB_COLUMNS]=this.createColumnsPanel.bind(this),this.includeChecks[e.TAB_GENERAL]=function(){return!0},this.includeChecks[e.TAB_FILTER]=function(){var e=n.gridOptionsWrapper.isEnableFilter(),t=n.gridOptionsWrapper.isFloatingFilter(),o=e||t,i=n.column.getColDef().suppressFilter;return o&&!i},this.includeChecks[e.TAB_COLUMNS]=function(){return!0},this.restrictTo=i}return e.prototype.addEventListener=function(e,t){this.localEventService.addEventListener(e,t)},e.prototype.getMinWidth=function(){return this.tabbedLayout.getMinWidth()},e.prototype.init=function(){var t=this,o=this.column.getMenuTabs(this.restrictTo?this.restrictTo:e.TABS_DEFAULT).filter(function(e){return t.isValidMenuTabItem(e)}).filter(function(e){return t.isNotSuppressed(e)}).map(function(e){return t.createTab(e)});this.tabbedLayout=new r.TabbedLayout({items:o,cssClass:"ag-menu",onActiveItemClicked:this.onHidePopup.bind(this),onItemClicked:this.onTabItemClicked.bind(this)})},e.prototype.isValidMenuTabItem=function(t){var o=!0,i=e.TABS_DEFAULT;return null!=this.restrictTo&&(o=this.restrictTo.indexOf(t)>-1,i=this.restrictTo),o=o&&e.TABS_DEFAULT.indexOf(t)>-1,o||console.warn("Trying to render an invalid menu item '"+t+"'. Check that your 'menuTabs' contains one of ["+i+"]"),o},e.prototype.isNotSuppressed=function(e){return this.includeChecks[e]()},e.prototype.createTab=function(e){return this.tabFactories[e]()},e.prototype.showTabBasedOnPreviousSelection=function(){this.showTab(this.initialSelection)},e.prototype.showTab=function(t){this.tabItemColumns&&t===e.TAB_COLUMNS?this.tabbedLayout.showItem(this.tabItemColumns):this.tabItemFilter&&t===e.TAB_FILTER?this.tabbedLayout.showItem(this.tabItemFilter):this.tabItemGeneral&&t===e.TAB_GENERAL?this.tabbedLayout.showItem(this.tabItemGeneral):this.tabbedLayout.showFirstItem()},e.prototype.onTabItemClicked=function(t){var o;switch(t.item){case this.tabItemColumns:o=e.TAB_COLUMNS;break;case this.tabItemFilter:o=e.TAB_FILTER;break;case this.tabItemGeneral:o=e.TAB_GENERAL}if(o){var i={type:e.EVENT_TAB_SELECTED,key:o};this.localEventService.dispatchEvent(i)}},e.prototype.destroy=function(){this.columnSelectPanel&&this.columnSelectPanel.destroy(),this.mainMenuList&&this.mainMenuList.destroy(),this.destroyFunctions.forEach(function(e){return e()})},e.prototype.getMenuItems=function(){var t,o=this.getDefaultMenuOptions(),i=this.gridOptionsWrapper.getMainMenuItemsFunc();if(i){t=i({column:this.column,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),defaultItems:o})}else t=o;return r.Utils.removeRepeatsFromArray(t,e.MENU_ITEM_SEPARATOR),t},e.prototype.getDefaultMenuOptions=function(){var t=[],o=this.columnController.getRowGroupColumns().length,i=o>0,n=this.columnController.getRowGroupColumns().indexOf(this.column)>=0,s=this.column.isAllowValue(),a=this.column.isAllowRowGroup(),l=this.column.isPrimary(),p=this.columnController.isPivotMode(),u=this.rowModel.getType()===r.Constants.ROW_MODEL_TYPE_IN_MEMORY;return t.push("pinSubMenu"),(l&&i&&s||!l)&&t.push("valueAggSubMenu"),t.push(e.MENU_ITEM_SEPARATOR),t.push("autoSizeThis"),t.push("autoSizeAll"),t.push(e.MENU_ITEM_SEPARATOR),a&&this.column.isPrimary()&&(n?t.push("rowUnGroup"):t.push("rowGroup")),t.push(e.MENU_ITEM_SEPARATOR),t.push("resetColumns"),t.push("toolPanel"),u&&(p?o>1:o>0)&&(t.push("expandAll"),t.push("contractAll")),t},e.prototype.createMainPanel=function(){this.mainMenuList=new a.MenuList,this.context.wireBean(this.mainMenuList);var t=this.getMenuItems(),o=this.menuItemMapper.mapWithStockItems(t,this.column);return this.mainMenuList.addMenuItems(o),this.mainMenuList.addEventListener(l.MenuItemComponent.EVENT_ITEM_SELECTED,this.onHidePopup.bind(this)),this.tabItemGeneral={title:r.Utils.createIconNoSpan("menu",this.gridOptionsWrapper,this.column),body:this.mainMenuList.getHtmlElement(),name:e.TAB_GENERAL},this.tabItemGeneral},e.prototype.onHidePopup=function(){this.hidePopupFunc()},e.prototype.createFilterPanel=function(){var t,o=this.filterManager.getOrCreateFilterWrapper(this.column);return o.filter.afterGuiAttached&&(t=o.filter.afterGuiAttached.bind(o.filter)),this.tabItemFilter={title:r.Utils.createIconNoSpan("filter",this.gridOptionsWrapper,this.column),body:o.gui,afterAttachedCallback:t,name:e.TAB_FILTER},this.tabItemFilter},e.prototype.createColumnsPanel=function(){var t=document.createElement("div");return r.Utils.addCssClass(t,"ag-menu-column-select-wrapper"),this.columnSelectPanel=new s.ColumnSelectPanel(!1),this.context.wireBean(this.columnSelectPanel),t.appendChild(this.columnSelectPanel.getHtmlElement()),this.tabItemColumns={title:r.Utils.createIconNoSpan("columns",this.gridOptionsWrapper,this.column),body:t,name:e.TAB_COLUMNS},this.tabItemColumns},e.prototype.afterGuiAttached=function(e){var t=this;this.tabbedLayout.setAfterAttachedParams({hidePopup:e.hidePopup}),this.hidePopupFunc=e.hidePopup;var o=function(t){"horizontal"===t.direction&&e.hidePopup()};this.eventService.addEventListener("bodyScroll",o),this.destroyFunctions.push(function(){return t.eventService.removeEventListener("bodyScroll",o)})},e.prototype.getGui=function(){return this.tabbedLayout.getGui()},e.EVENT_TAB_SELECTED="tabSelected",e.TAB_FILTER="filterMenuTab",e.TAB_GENERAL="generalMenuTab",e.TAB_COLUMNS="columnsMenuTab",e.TABS_DEFAULT=[e.TAB_GENERAL,e.TAB_FILTER,e.TAB_COLUMNS],e.MENU_ITEM_SEPARATOR="separator",i([r.Autowired("columnController"),n("design:type",r.ColumnController)],e.prototype,"columnController",void 0),i([r.Autowired("filterManager"),n("design:type",r.FilterManager)],e.prototype,"filterManager",void 0),i([r.Autowired("context"),n("design:type",r.Context)],e.prototype,"context",void 0),i([r.Autowired("gridApi"),n("design:type",r.GridApi)],e.prototype,"gridApi",void 0),i([r.Autowired("gridOptionsWrapper"),n("design:type",r.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.Autowired("eventService"),n("design:type",r.EventService)],e.prototype,"eventService",void 0),i([r.Autowired("menuItemMapper"),n("design:type",p.MenuItemMapper)],e.prototype,"menuItemMapper",void 0),i([r.Autowired("rowModel"),n("design:type",Object)],e.prototype,"rowModel",void 0),i([r.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),e}();t.EnterpriseMenu=c},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),n=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=o(2),a=o(139),l=o(140),p=function(e){function t(o){var i=e.call(this,t.TEMPLATE)||this;return i.allowDragging=o,i}return i(t,e),t.prototype.init=function(){this.addDestroyableEventListener(this.globalEventService,s.Events.EVENT_COLUMN_EVERYTHING_CHANGED,this.onColumnsChanged.bind(this)),this.columnController.isReady()&&this.onColumnsChanged()},t.prototype.onColumnsChanged=function(){this.destroyAllRenderedElements(),this.columnTree=this.columnController.getPrimaryColumnTree(),this.recursivelyRenderComponents(this.columnTree,0)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.destroyAllRenderedElements()},t.prototype.destroyAllRenderedElements=function(){s.Utils.removeAllChildren(this.getHtmlElement()),this.renderedItems&&s.Utils.iterateObject(this.renderedItems,function(e,t){return t.destroy()}),this.renderedItems={}},t.prototype.recursivelyRenderGroupComponent=function(e,t){var o;if(!e.getColGroupDef()||!e.getColGroupDef().suppressToolPanel){if(e.isPadding())o=t;else{var i=new a.RenderedGroup(e,t,this.onGroupExpanded.bind(this),this.allowDragging);this.context.wireBean(i),this.appendChild(i.getHtmlElement()),o=t+1,this.renderedItems[e.getId()]=i}this.recursivelyRenderComponents(e.getChildren(),o)}},t.prototype.recursivelyRenderColumnComponent=function(e,t){if(!e.getColDef()||!e.getColDef().suppressToolPanel){var o=new l.RenderedColumn(e,t,this.allowDragging);this.context.wireBean(o),this.appendChild(o.getHtmlElement()),this.renderedItems[e.getId()]=o}},t.prototype.recursivelyRenderComponents=function(e,t){var o=this;e.forEach(function(e){e instanceof s.OriginalColumnGroup?o.recursivelyRenderGroupComponent(e,t):o.recursivelyRenderColumnComponent(e,t)})},t.prototype.recursivelySetVisibility=function(e,t){var o=this;e.forEach(function(e){var i=o.renderedItems[e.getId()];if(i&&i.setVisible(t),e instanceof s.OriginalColumnGroup){var n=e,r=void 0;if(i){var a=i.isExpanded();r=!!t&&a}else r=t;var l=n.getChildren();o.recursivelySetVisibility(l,r)}})},t.prototype.onGroupExpanded=function(){this.recursivelySetVisibility(this.columnTree,!0)},t.TEMPLATE='<div class="ag-column-select-panel"></div>',n([s.Autowired("columnController"),r("design:type",s.ColumnController)],t.prototype,"columnController",void 0),n([s.Autowired("eventService"),r("design:type",s.EventService)],t.prototype,"globalEventService",void 0),n([s.Autowired("context"),r("design:type",s.Context)],t.prototype,"context",void 0),n([s.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],t.prototype,"init",null),t}(s.Component);t.ColumnSelectPanel=p},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),n=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=o(2),a=function(e){function t(t,o,i,n){var r=e.call(this)||this;return r.expanded=!0,r.processingColumnStateChange=!1,r.columnGroup=t,r.columnDept=o,r.expandedCallback=i,r.allowDragging=n,r}return i(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.instantiate(this.context);var e=this.queryForHtmlElement("#eText");this.displayName=this.columnGroup.getColGroupDef()?this.columnGroup.getColGroupDef().headerName:null,s.Utils.missing(this.displayName)&&(this.displayName=">>"),e.innerHTML=this.displayName,this.setupExpandContract(),this.queryForHtmlElement("#eIndent").style.width=10*this.columnDept+"px",this.addDestroyableEventListener(e,"click",this.onClick.bind(this)),this.addDestroyableEventListener(this.eventService,s.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onColumnStateChanged.bind(this)),this.addDestroyableEventListener(this.cbSelect,s.AgCheckbox.EVENT_CHANGED,this.onCheckboxChanged.bind(this));var o=this.queryForHtmlElement("#eCheckboxAndText"),i=new s.TouchListener(o);this.addDestroyableEventListener(i,s.TouchListener.EVENT_TAP,this.onClick.bind(this)),this.addDestroyFunc(i.destroy.bind(i)),this.setOpenClosedIcons(),this.allowDragging&&this.addDragSource(),this.onColumnStateChanged(),this.addVisibilityListenersToAllChildren(),s.CssClassApplier.addToolPanelClassesFromColDef(this.columnGroup.getColGroupDef(),this.getHtmlElement(),this.gridOptionsWrapper,null,this.columnGroup)},t.prototype.addVisibilityListenersToAllChildren=function(){var e=this;this.columnGroup.getLeafColumns().forEach(function(t){e.addDestroyableEventListener(t,s.Column.EVENT_VISIBLE_CHANGED,e.onColumnStateChanged.bind(e)),e.addDestroyableEventListener(t,s.Column.EVENT_VALUE_CHANGED,e.onColumnStateChanged.bind(e)),e.addDestroyableEventListener(t,s.Column.EVENT_PIVOT_CHANGED,e.onColumnStateChanged.bind(e)),e.addDestroyableEventListener(t,s.Column.EVENT_ROW_GROUP_CHANGED,e.onColumnStateChanged.bind(e))})},t.prototype.addDragSource=function(){var e=this,t={type:s.DragSourceType.ToolPanel,eElement:this.getHtmlElement(),dragItemName:this.displayName,dragItemCallback:function(){return e.createDragItem()}};this.dragAndDropService.addDragSource(t,!0),this.addDestroyFunc(function(){return e.dragAndDropService.removeDragSource(t)})},t.prototype.createDragItem=function(){var e={};return this.columnGroup.getLeafColumns().forEach(function(t){e[t.getId()]=t.isVisible()}),{columns:this.columnGroup.getLeafColumns(),visibleState:e}},t.prototype.setupExpandContract=function(){this.eGroupClosedIcon=this.queryForHtmlElement("#eGroupClosedIcon"),this.eGroupOpenedIcon=this.queryForHtmlElement("#eGroupOpenedIcon"),this.eGroupClosedIcon.appendChild(s.Utils.createIcon("columnSelectClosed",this.gridOptionsWrapper,null)),this.eGroupOpenedIcon.appendChild(s.Utils.createIcon("columnSelectOpen",this.gridOptionsWrapper,null)),this.addDestroyableEventListener(this.eGroupClosedIcon,"click",this.onExpandOrContractClicked.bind(this)),this.addDestroyableEventListener(this.eGroupOpenedIcon,"click",this.onExpandOrContractClicked.bind(this));var e=this.queryForHtmlElement("#eColumnGroupIcons"),t=new s.TouchListener(e);this.addDestroyableEventListener(t,s.TouchListener.EVENT_TAP,this.onExpandOrContractClicked.bind(this)),this.addDestroyFunc(t.destroy.bind(t))},t.prototype.onClick=function(){this.cbSelect.setSelected(!this.cbSelect.isSelected())},t.prototype.onCheckboxChanged=function(){if(!this.processingColumnStateChange){var e=this.columnGroup.getLeafColumns(),t=this.cbSelect.isSelected();this.columnController.isPivotMode()?t?this.actionCheckedReduce(e):this.actionUnCheckedReduce(e):this.columnController.setColumnsVisible(e,t)}},t.prototype.actionUnCheckedReduce=function(e){var t=[],o=[],i=[];e.forEach(function(e){e.isPivotActive()&&t.push(e),e.isRowGroupActive()&&i.push(e),e.isValueActive()&&o.push(e)}),t.length>0&&this.columnController.removePivotColumns(t),i.length>0&&this.columnController.removeRowGroupColumns(i),o.length>0&&this.columnController.removeValueColumns(o)},t.prototype.actionCheckedReduce=function(e){var t=[],o=[],i=[];e.forEach(function(e){e.isAnyFunctionActive()||(e.isAllowValue()?t.push(e):e.isAllowRowGroup()?o.push(e):e.isAllowRowGroup()&&i.push(e))}),t.length>0&&this.columnController.addValueColumns(t),o.length>0&&this.columnController.addRowGroupColumns(o),i.length>0&&this.columnController.addPivotColumns(i)},t.prototype.onColumnStateChanged=function(){var e=this,t=this.columnController.isPivotMode(),o=0,i=0;this.columnGroup.getLeafColumns().forEach(function(n){e.isColumnVisible(n,t)?o++:i++});var n;n=o>0&&i>0?null:o>0,this.processingColumnStateChange=!0,this.cbSelect.setSelected(n),this.processingColumnStateChange=!1},t.prototype.isColumnVisible=function(e,t){if(t){var o=e.isPivotActive(),i=e.isRowGroupActive(),n=e.isValueActive();return o||i||n}return e.isVisible()},t.prototype.onExpandOrContractClicked=function(){this.expanded=!this.expanded,this.setOpenClosedIcons(),this.expandedCallback()},t.prototype.setOpenClosedIcons=function(){var e=this.expanded;s.Utils.setVisible(this.eGroupClosedIcon,!e),s.Utils.setVisible(this.eGroupOpenedIcon,e)},t.prototype.isExpanded=function(){return this.expanded},t.TEMPLATE='<div class="ag-column-select-column-group">  <span id="eIndent" class="ag-column-select-indent"></span>  <span id="eColumnGroupIcons" class="ag-column-group-icons">    <span id="eGroupOpenedIcon" class="ag-column-group-closed-icon"></span>    <span id="eGroupClosedIcon" class="ag-column-group-opened-icon"></span>  </span>  <span id="eCheckboxAndText">    <ag-checkbox class="ag-column-select-checkbox"></ag-checkbox>    <span id="eText" class="ag-column-select-column-group-label"></span>  </span></div>',n([s.Autowired("gridOptionsWrapper"),r("design:type",s.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([s.Autowired("columnController"),r("design:type",s.ColumnController)],t.prototype,"columnController",void 0),n([s.Autowired("gridPanel"),r("design:type",s.GridPanel)],t.prototype,"gridPanel",void 0),n([s.Autowired("context"),r("design:type",s.Context)],t.prototype,"context",void 0),n([s.Autowired("dragAndDropService"),r("design:type",s.DragAndDropService)],t.prototype,"dragAndDropService",void 0),n([s.Autowired("eventService"),r("design:type",s.EventService)],t.prototype,"eventService",void 0),n([s.QuerySelector(".ag-column-select-checkbox"),r("design:type",s.AgCheckbox)],t.prototype,"cbSelect",void 0),n([s.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],t.prototype,"init",null),t}(s.Component);t.RenderedGroup=a},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),n=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=o(2),a=function(e){function t(t,o,i){var n=e.call(this)||this;return n.processingColumnStateChange=!1,n.column=t,n.columnDept=o,n.allowDragging=i,n}return i(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.displayName=this.columnController.getDisplayNameForColumn(this.column,"toolPanel"),this.eText.innerHTML=this.displayName,this.eIndent.style.width=10*this.columnDept+"px",this.allowDragging&&this.addDragSource(),this.addDestroyableEventListener(this.eventService,s.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onColumnStateChanged.bind(this)),this.addDestroyableEventListener(this.column,s.Column.EVENT_VALUE_CHANGED,this.onColumnStateChanged.bind(this)),this.addDestroyableEventListener(this.column,s.Column.EVENT_PIVOT_CHANGED,this.onColumnStateChanged.bind(this)),this.addDestroyableEventListener(this.column,s.Column.EVENT_ROW_GROUP_CHANGED,this.onColumnStateChanged.bind(this)),this.addDestroyableEventListener(this.column,s.Column.EVENT_VISIBLE_CHANGED,this.onColumnStateChanged.bind(this)),this.addDestroyableEventListener(this.gridOptionsWrapper,"functionsReadOnly",this.onColumnStateChanged.bind(this)),this.instantiate(this.context),this.onColumnStateChanged(),this.addDestroyableEventListener(this.cbSelect,s.AgCheckbox.EVENT_CHANGED,this.onChange.bind(this)),this.addDestroyableEventListener(this.eText,"click",this.onClick.bind(this)),this.addTap(),s.CssClassApplier.addToolPanelClassesFromColDef(this.column.getColDef(),this.getHtmlElement(),this.gridOptionsWrapper,this.column,null)},t.prototype.addTap=function(){var e=new s.TouchListener(this.getHtmlElement());this.addDestroyableEventListener(e,s.TouchListener.EVENT_TAP,this.onClick.bind(this)),this.addDestroyFunc(e.destroy.bind(e))},t.prototype.onClick=function(){this.cbSelect.isReadOnly()||this.cbSelect.toggle()},t.prototype.onChange=function(e){this.processingColumnStateChange||(this.columnController.isPivotMode()?e.selected?this.actionCheckedPivotMode():this.actionUnCheckedPivotMode():this.columnController.setColumnVisible(this.column,e.selected))},t.prototype.actionUnCheckedPivotMode=function(){var e=this.gridOptionsWrapper.isFunctionsPassive(),t=this.column,o=this.columnController;if(t.isPivotActive())if(e){var i=this.columnController.getPivotColumns().slice();i.push(t);var n={type:s.Events.EVENT_COLUMN_PIVOT_CHANGE_REQUEST,columns:i,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(n)}else o.removePivotColumn(t);if(t.isValueActive())if(e){var r=this.columnController.getValueColumns().slice();r.push(t);var a={type:s.Events.EVENT_COLUMN_VALUE_CHANGE_REQUEST,columns:r,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(a)}else o.removeValueColumn(t);if(t.isRowGroupActive())if(e){var l=this.columnController.getRowGroupColumns().slice();l.push(t);var p={type:s.Events.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST,columns:l,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(p)}else o.removeRowGroupColumn(t)},t.prototype.actionCheckedPivotMode=function(){var e=this.column;if(!(e.isValueActive()||e.isPivotActive()||e.isRowGroupActive())){var t=this.gridOptionsWrapper.isFunctionsPassive();if(e.isAllowValue())if(t){var o=this.columnController.getValueColumns().slice();s.Utils.removeFromArray(o,e);var i={type:s.Events.EVENT_COLUMN_VALUE_CHANGE_REQUEST,api:this.gridApi,columnApi:this.columnApi,columns:o};this.eventService.dispatchEvent(i)}else this.columnController.addValueColumn(e);else if(e.isAllowRowGroup())if(t){var n=this.columnController.getRowGroupColumns().slice();s.Utils.removeFromArray(n,e);var r={type:s.Events.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST,api:this.gridApi,columnApi:this.columnApi,columns:n};this.eventService.dispatchEvent(r)}else this.columnController.addRowGroupColumn(e);else if(e.isAllowPivot())if(t){var a=this.columnController.getPivotColumns().slice();s.Utils.removeFromArray(a,e);var l={type:s.Events.EVENT_COLUMN_PIVOT_CHANGE_REQUEST,api:this.gridApi,columnApi:this.columnApi,columns:a};this.eventService.dispatchEvent(l)}else this.columnController.addPivotColumn(e)}},t.prototype.addDragSource=function(){var e=this,t={type:s.DragSourceType.ToolPanel,eElement:this.getHtmlElement(),dragItemName:this.displayName,dragItemCallback:function(){return e.createDragItem()}};this.dragAndDropService.addDragSource(t,!0),this.addDestroyFunc(function(){return e.dragAndDropService.removeDragSource(t)})},t.prototype.createDragItem=function(){var e={};return e[this.column.getId()]=this.column.isVisible(),{columns:[this.column],visibleState:e}},t.prototype.onColumnStateChanged=function(){this.processingColumnStateChange=!0;var e=this.columnController.isPivotMode();if(e){var t=this.column.isAnyFunctionActive();this.cbSelect.setSelected(t)}else this.cbSelect.setSelected(this.column.isVisible());var o=e&&(this.gridOptionsWrapper.isFunctionsReadOnly()||!this.column.isAnyFunctionAllowed());this.cbSelect.setReadOnly(o);var i=e&&this.gridOptionsWrapper.isFunctionsPassive();this.cbSelect.setPassive(i),this.processingColumnStateChange=!1},t.TEMPLATE='<div class="ag-column-select-column"><span class="ag-column-select-indent"></span><ag-checkbox class="ag-column-select-checkbox"></ag-checkbox><span class="ag-column-select-label"></span></div>',n([s.Autowired("gridOptionsWrapper"),r("design:type",s.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([s.Autowired("columnController"),r("design:type",s.ColumnController)],t.prototype,"columnController",void 0),n([s.Autowired("eventService"),r("design:type",s.EventService)],t.prototype,"eventService",void 0),n([s.Autowired("dragAndDropService"),r("design:type",s.DragAndDropService)],t.prototype,"dragAndDropService",void 0),n([s.Autowired("gridPanel"),r("design:type",s.GridPanel)],t.prototype,"gridPanel",void 0),n([s.Autowired("context"),r("design:type",s.Context)],t.prototype,"context",void 0),n([s.Autowired("columnApi"),r("design:type",s.ColumnApi)],t.prototype,"columnApi",void 0),n([s.Autowired("gridApi"),r("design:type",s.GridApi)],t.prototype,"gridApi",void 0),n([s.QuerySelector(".ag-column-select-label"),r("design:type",HTMLElement)],t.prototype,"eText",void 0),n([s.QuerySelector(".ag-column-select-indent"),r("design:type",HTMLElement)],t.prototype,"eIndent",void 0),n([s.QuerySelector(".ag-column-select-checkbox"),r("design:type",s.AgCheckbox)],t.prototype,"cbSelect",void 0),n([s.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],t.prototype,"init",null),t}(s.Component);t.RenderedColumn=a},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),n=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=o(2),a=o(142),l=function(e){function t(){var o=e.call(this,t.TEMPLATE)||this;return o.timerCount=0,o.removeChildFuncs=[],o}return i(t,e),t.prototype.clearActiveItem=function(){this.removeActiveItem(),this.removeChildPopup()},t.prototype.addMenuItems=function(e){var t=this;s.Utils.missing(e)||e.forEach(function(e){if("separator"===e)t.addSeparator();else if("string"==typeof e)console.log("ag-Grid: unrecognised menu item "+e);else{var o=e;t.addItem(o)}})},t.prototype.addItem=function(e){var t=this,o=new a.MenuItemComponent(e);this.context.wireBean(o),this.getHtmlElement().appendChild(o.getHtmlElement()),this.addDestroyFunc(function(){return o.destroy()}),o.addEventListener(a.MenuItemComponent.EVENT_ITEM_SELECTED,function(i){e.subMenu?t.showChildMenu(e,o):t.dispatchEvent(i)}),o.addGuiEventListener("mouseenter",this.mouseEnterItem.bind(this,e,o)),o.addGuiEventListener("mouseleave",function(){return t.timerCount++})},t.prototype.mouseEnterItem=function(e,t){e.disabled||(this.activeMenuItemParams!==e&&this.removeChildPopup(),this.removeActiveItem(),this.activeMenuItemParams=e,this.activeMenuItem=t,s.Utils.addCssClass(this.activeMenuItem.getHtmlElement(),"ag-menu-option-active"),e.subMenu&&this.addHoverForChildPopup(e,t))},t.prototype.removeActiveItem=function(){this.activeMenuItem&&(s.Utils.removeCssClass(this.activeMenuItem.getHtmlElement(),"ag-menu-option-active"),this.activeMenuItem=null,this.activeMenuItemParams=null)},t.prototype.addHoverForChildPopup=function(e,t){var o=this,i=this.timerCount;setTimeout(function(){var n=i===o.timerCount,r=o.subMenuParentDef===e;n&&!r&&o.showChildMenu(e,t)},500)},t.prototype.addSeparator=function(){this.getHtmlElement().appendChild(s.Utils.loadTemplate(t.SEPARATOR_TEMPLATE))},t.prototype.showChildMenu=function(e,o){var i=this;this.removeChildPopup();var n=new t;this.context.wireBean(n),n.addMenuItems(e.subMenu);var r=s.Utils.loadTemplate('<div class="ag-menu"></div>');r.appendChild(n.getHtmlElement());var l=this.popupService.addAsModalPopup(r,!0);this.popupService.positionPopupForMenu({eventSource:o.getGui(),ePopup:r}),this.subMenuParentDef=e;var p=function(e){i.dispatchEvent(e)};n.addEventListener(a.MenuItemComponent.EVENT_ITEM_SELECTED,p),this.removeChildFuncs.push(function(){n.clearActiveItem(),n.destroy(),i.subMenuParentDef=null,n.removeEventListener(a.MenuItemComponent.EVENT_ITEM_SELECTED,p),l()})},t.prototype.removeChildPopup=function(){this.removeChildFuncs.forEach(function(e){return e()}),this.removeChildFuncs=[]},t.prototype.destroy=function(){this.removeChildPopup(),e.prototype.destroy.call(this)},t.TEMPLATE='<div class="ag-menu-list"></div>',t.SEPARATOR_TEMPLATE='<div class="ag-menu-separator">  <span class="ag-menu-separator-cell"></span>  <span class="ag-menu-separator-cell"></span>  <span class="ag-menu-separator-cell"></span>  <span class="ag-menu-separator-cell"></span></div>',n([s.Autowired("context"),r("design:type",s.Context)],t.prototype,"context",void 0),n([s.Autowired("popupService"),r("design:type",s.PopupService)],t.prototype,"popupService",void 0),t}(s.Component);t.MenuList=l},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),n=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=o(2),a=function(e){function t(o){var i=e.call(this,t.TEMPLATE)||this;return i.params=o,i}return i(t,e),t.prototype.init=function(){var e=this;this.params.checked?this.queryForHtmlElement("#eIcon").innerHTML='<span class="ag-icon ag-icon-tick"></span>':this.params.icon?s.Utils.isNodeOrElement(this.params.icon)?this.queryForHtmlElement("#eIcon").appendChild(this.params.icon):"string"==typeof this.params.icon?this.queryForHtmlElement("#eIcon").innerHTML=this.params.icon:console.log("ag-Grid: menu item icon must be DOM node or string"):this.queryForHtmlElement("#eIcon").innerHTML="&nbsp;",this.params.tooltip&&this.getHtmlElement().setAttribute("title",this.params.tooltip),this.params.shortcut&&(this.queryForHtmlElement("#eShortcut").innerHTML=this.params.shortcut),this.params.subMenu?this.gridOptionsWrapper.isEnableRtl()?this.queryForHtmlElement("#ePopupPointer").classList.add("ag-icon-small-left"):this.queryForHtmlElement("#ePopupPointer").classList.add("ag-icon-small-right"):this.queryForHtmlElement("#ePopupPointer").innerHTML="&nbsp;",this.queryForHtmlElement("#eName").innerHTML=this.params.name,this.params.disabled?s.Utils.addCssClass(this.getHtmlElement(),"ag-menu-option-disabled"):this.addGuiEventListener("click",this.onOptionSelected.bind(this)),this.params.cssClasses&&this.params.cssClasses.forEach(function(t){return s.Utils.addCssClass(e.getHtmlElement(),t)})},t.prototype.onOptionSelected=function(){var e={type:t.EVENT_ITEM_SELECTED,action:this.params.action,checked:this.params.checked,cssClasses:this.params.cssClasses,disabled:this.params.disabled,icon:this.params.icon,name:this.params.name,shortcut:this.params.shortcut,subMenu:this.params.subMenu,tooltip:this.params.tooltip};this.dispatchEvent(e),this.params.action&&this.params.action()},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.TEMPLATE='<div class="ag-menu-option">  <span id="eIcon" class="ag-menu-option-icon"></span>  <span id="eName" class="ag-menu-option-text"></span>  <span id="eShortcut" class="ag-menu-option-shortcut"></span>  <span id="ePopupPointer" class="ag-menu-option-popup-pointer"></span></div>',t.EVENT_ITEM_SELECTED="itemSelected",n([s.Autowired("gridOptionsWrapper"),r("design:type",s.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([s.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],t.prototype,"init",null),t}(s.Component);t.MenuItemComponent=a},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(2),s=o(144),a=o(146),l=function(){function e(){}return e.prototype.mapWithStockItems=function(e,t){var o=this;if(!e)return[];var i=[];return e.forEach(function(e){var n;if(n="string"==typeof e?o.getStockMenuItem(e,t):e,n.subMenu){var r=n;r.subMenu=o.mapWithStockItems(r.subMenu,t)}i.push(n)}),i},e.prototype.getStockMenuItem=function(e,t){var o=this,i=this.gridOptionsWrapper.getLocaleTextFunc();switch(e){case"pinSubMenu":return{name:i("pinColumn","Pin Column"),icon:r.Utils.createIconNoSpan("menuPin",this.gridOptionsWrapper,null),subMenu:["pinLeft","pinRight","clearPinned"]};case"pinLeft":return{name:i("pinLeft","Pin Left"),action:function(){return o.columnController.setColumnPinned(t,r.Column.PINNED_LEFT)},checked:t.isPinnedLeft()};case"pinRight":return{name:i("pinRight","Pin Right"),action:function(){return o.columnController.setColumnPinned(t,r.Column.PINNED_RIGHT)},checked:t.isPinnedRight()};case"clearPinned":return{name:i("noPin","No Pin"),action:function(){return o.columnController.setColumnPinned(t,null)},checked:!t.isPinned()};case"valueAggSubMenu":return{name:i("valueAggregation","Value Aggregation"),icon:r.Utils.createIconNoSpan("menuValue",this.gridOptionsWrapper,null),subMenu:this.createAggregationSubMenu(t)};case"autoSizeThis":return{name:i("autosizeThiscolumn","Autosize This Column"),action:function(){return o.columnController.autoSizeColumn(t)}};case"autoSizeAll":return{name:i("autosizeAllColumns","Autosize All Columns"),action:function(){return o.columnController.autoSizeAllColumns()}};case"rowGroup":return{name:i("groupBy","Group by")+" "+this.columnController.getDisplayNameForColumn(t,"header"),action:function(){return o.columnController.addRowGroupColumn(t)},icon:r.Utils.createIconNoSpan("menuAddRowGroup",this.gridOptionsWrapper,null)};case"rowUnGroup":return{name:i("ungroupBy","Un-Group by")+" "+this.columnController.getDisplayNameForColumn(t,"header"),action:function(){return o.columnController.removeRowGroupColumn(t)},icon:r.Utils.createIconNoSpan("menuRemoveRowGroup",this.gridOptionsWrapper,null)};case"resetColumns":return{name:i("resetColumns","Reset Columns"),action:function(){return o.columnController.resetColumnState()}};case"expandAll":return{name:i("expandAll","Expand All"),action:function(){return o.gridApi.expandAll()}};case"contractAll":return{name:i("collapseAll","Collapse All"),action:function(){return o.gridApi.collapseAll()}};case"copy":return{name:i("copy","Copy"),shortcut:i("ctrlC","Ctrl+C"),icon:r.Utils.createIconNoSpan("clipboardCopy",this.gridOptionsWrapper,null),action:function(){return o.clipboardService.copyToClipboard(!1)}};case"copyWithHeaders":return{name:i("copyWithHeaders","Copy with Headers"),icon:r.Utils.createIconNoSpan("clipboardCopy",this.gridOptionsWrapper,null),action:function(){return o.clipboardService.copyToClipboard(!0)}};case"paste":return{name:i("paste","Paste"),shortcut:i("ctrlV","Ctrl+V"),disabled:!0,icon:r.Utils.createIconNoSpan("clipboardPaste",this.gridOptionsWrapper,null),action:function(){return o.clipboardService.pasteFromClipboard()}};case"toolPanel":return{name:i("toolPanel","Tool Panel"),checked:this.gridApi.isToolPanelShowing(),action:function(){return o.gridApi.showToolPanel(!o.gridApi.isToolPanelShowing())}};case"export":var n=[];return this.gridOptionsWrapper.isSuppressCsvExport()||n.push("csvExport"),this.gridOptionsWrapper.isSuppressExcelExport()||n.push("excelExport"),{name:i("export","Export"),subMenu:n};case"csvExport":return{name:i("csvExport","CSV Export"),action:function(){return o.gridApi.exportDataAsCsv({})}};case"excelExport":return{name:i("excelExport","Excel Export"),action:function(){return o.gridApi.exportDataAsExcel({})}};case"separator":return"separator";default:return console.log("ag-Grid: unknown menu item type "+e),null}},e.prototype.createAggregationSubMenu=function(e){var t,o=this,i=this.gridOptionsWrapper.getLocaleTextFunc(),n=e.isValueActive(),r=this.aggFuncService.getFuncNames(e);t=e.isPrimary()?e:e.getColDef().pivotValueColumn;var s=[];return r.forEach(function(e){s.push({name:i(e,e),action:function(){o.columnController.setColumnAggFunc(t,e),o.columnController.addValueColumn(t)},checked:n&&t.getAggFunc()===e})}),s},i([r.Autowired("gridOptionsWrapper"),n("design:type",r.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.Autowired("columnController"),n("design:type",r.ColumnController)],e.prototype,"columnController",void 0),i([r.Autowired("gridApi"),n("design:type",r.GridApi)],e.prototype,"gridApi",void 0),i([r.Autowired("clipboardService"),n("design:type",s.ClipboardService)],e.prototype,"clipboardService",void 0),i([r.Autowired("aggFuncService"),n("design:type",a.AggFuncService)],e.prototype,"aggFuncService",void 0),e=i([r.Bean("menuItemMapper")],e)}();t.MenuItemMapper=l},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(2),s=o(145),a=function(){function e(){}return e.prototype.init=function(){this.logger=this.loggerFactory.create("ClipboardService")},e.prototype.pasteFromClipboard=function(){var e=this;this.logger.log("pasteFromClipboard"),this.executeOnTempElement(function(e){e.focus()},function(t){var o=t.value;e.finishPasteFromClipboard(o)})},e.prototype.copyRangeDown=function(){var e=this;if(!this.rangeController.isEmpty()){var t={},o=null,i=[],n=[],s=function(s,a,l){o?(i.push(a),l.forEach(function(i,n){if(i.isCellEditable(a)){var l=o[n],p=e.gridOptionsWrapper.getProcessCellFromClipboardFunc();l=e.userProcessCell(a,i,l,p,r.Constants.EXPORT_TYPE_DRAG_COPY),e.valueService.setValue(a,i,l);var u={rowIndex:s.rowIndex,floating:s.floating,column:i},c=new r.GridCell(u).createId();t[c]=!0}})):(o=[],l.forEach(function(t){var i=e.valueService.getValue(t,a),s=e.gridOptionsWrapper.getProcessCellForClipboardFunc();i=e.userProcessCell(a,t,i,s,r.Constants.EXPORT_TYPE_DRAG_COPY),o.push(i),n.push(t.getId())}))};this.iterateActiveRanges(!0,s),this.rowRenderer.refreshCells({rowNodes:i,columns:n}),this.dispatchFlashCells(t)}},e.prototype.finishPasteFromClipboard=function(e){if(!r.Utils.missingOrEmpty(e)){var t=this.focusedCellController.getFocusedCell();if(t){var o=this.dataToArray(e);if(o){var i=o[o.length-1];1===i.length&&""===i[0]&&r.Utils.removeFromArray(o,i);var n=new r.GridRow(t.rowIndex,t.floating),s={},a=[],l=[],p=this.columnController.getDisplayedColumnsStartingAt(t.column);1===o.length&&1===o[0].length?this.singleCellRange(o,a,n,s,l):this.multipleCellRange(o,n,a,p,s,l,r.Constants.EXPORT_TYPE_CLIPBOARD),this.rowRenderer.refreshCells({rowNodes:a,columns:l}),this.dispatchFlashCells(s),this.focusedCellController.setFocusedCell(t.rowIndex,t.column,t.floating,!0)}}}},e.prototype.multipleCellRange=function(e,t,o,i,n,s,a){var l=this;return e.forEach(function(e){if(t){var p=l.getRowNode(t);o.push(p),e.forEach(function(e,o){var u=i[o];r.Utils.missing(u)||u.isCellEditable(p)&&l.updateCellValue(p,u,e,t,n,s,a)}),t=l.cellNavigationService.getRowBelow(t)}}),t},e.prototype.singleCellRange=function(e,t,o,i,n){var s=this,a=e[0][0],l=function(e,l,p){t.push(l),p.forEach(function(e){s.updateCellValue(l,e,a,o,i,n,r.Constants.EXPORT_TYPE_CLIPBOARD)})};this.iterateActiveRanges(!1,l)},e.prototype.updateCellValue=function(e,t,o,i,n,s,a){if(!t.isSuppressPaste(e)){var l=this.userProcessCell(e,t,o,this.gridOptionsWrapper.getProcessCellFromClipboardFunc(),a);this.valueService.setValue(e,t,l);var p={rowIndex:i.rowIndex,floating:i.floating,column:t};n[new r.GridCell(p).createId()]=!0,s.indexOf(t.getId())<0&&s.push(t.getId())}},e.prototype.copyToClipboard=function(e){void 0===e&&(e=!1),this.logger.log("copyToClipboard: includeHeaders = "+e);var t=!this.selectionController.isEmpty()&&!this.gridOptionsWrapper.isSuppressCopyRowsToClipboard();this.rangeController.isMoreThanOneCell()?this.copySelectedRangeToClipboard(e):t?this.copySelectedRowsToClipboard(e):this.focusedCellController.isAnyCellFocused()?this.copyFocusedCellToClipboard(e):this.copySelectedRangeToClipboard(e)},e.prototype.iterateActiveRanges=function(e,t,o){var i=this;if(!this.rangeController.isEmpty()){var n=this.rangeController.getCellRanges();if(e){var r=n[0];this.iterateActiveRange(r,t,o)}else n.forEach(function(e){return i.iterateActiveRange(e,t,o)})}},e.prototype.iterateActiveRange=function(e,t,o){var i=e.start.getGridRow(),n=e.end.getGridRow(),s=i.before(n),a=s?i:n,l=s?n:i;for(r.Utils.exists(o)&&o(e.columns);;){if(t(a,this.getRowNode(a),e.columns),a.equals(l))break;a=this.cellNavigationService.getRowBelow(a)}},e.prototype.copySelectedRangeToClipboard=function(e){var t=this;if(void 0===e&&(e=!1),!this.rangeController.isEmpty()){var o=this.gridOptionsWrapper.getClipboardDeliminator(),i="",n={},s=function(n){e&&(n.forEach(function(e,n){var s=t.columnController.getDisplayNameForColumn(e,"clipboard",!0);0!=n&&(i+=o),r.Utils.exists(s)&&(i+=s)}),i+="\r\n")},a=function(e,s,a){a.forEach(function(a,l){var p=t.valueService.getValue(a,s),u=t.userProcessCell(s,a,p,t.gridOptionsWrapper.getProcessCellForClipboardFunc(),r.Constants.EXPORT_TYPE_CLIPBOARD);0!=l&&(i+=o),r.Utils.exists(u)&&(i+=u);var c={rowIndex:e.rowIndex,floating:e.floating,column:a},d=new r.GridCell(c).createId();n[d]=!0}),i+="\r\n"};this.iterateActiveRanges(!1,a,s),this.copyDataToClipboard(i),this.dispatchFlashCells(n)}},e.prototype.copyFocusedCellToClipboard=function(e){void 0===e&&(e=!1);var t=this.focusedCellController.getFocusedCell();if(!r.Utils.missing(t)){var o=t.getGridRow(),i=this.getRowNode(o),n=t.column,s=this.valueService.getValue(n,i),a=this.userProcessCell(i,n,s,this.gridOptionsWrapper.getProcessCellForClipboardFunc(),r.Constants.EXPORT_TYPE_CLIPBOARD);if(r.Utils.exists(a)){var l="";e&&(l=this.columnController.getDisplayNameForColumn(n,"clipboard",!0)+"\r\n"),l+=a.toString(),this.copyDataToClipboard(l)}else this.copyDataToClipboard("");var p=t.createId(),u={};u[p]=!0,this.dispatchFlashCells(u)}},e.prototype.dispatchFlashCells=function(e){var t=this;setTimeout(function(){var o={type:r.Events.EVENT_FLASH_CELLS,cells:e,api:t.gridApi,columnApi:t.columnApi};t.eventService.dispatchEvent(o)},0)},e.prototype.userProcessCell=function(e,t,o,i,n){if(i){return i({column:t,node:e,value:o,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),type:n})}return o},e.prototype.getRowNode=function(e){switch(e.floating){case r.Constants.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case r.Constants.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},e.prototype.copySelectedRowsToClipboard=function(e,t){void 0===e&&(e=!1);var o=!e,i=this.gridOptionsWrapper.getClipboardDeliminator(),n={columnKeys:t,skipHeader:o,skipFooters:!0,suppressQuotes:!0,columnSeparator:i,onlySelected:!0,processCellCallback:this.gridOptionsWrapper.getProcessCellForClipboardFunc()},r=this.csvCreator.getDataAsCsv(n);this.copyDataToClipboard(r)},e.prototype.copyDataToClipboard=function(e){var t=this.gridOptionsWrapper.getSendToClipboardFunc();if(r.Utils.exists(t)){t({data:e})}else this.executeOnTempElement(function(t){return t.value=e,t.select(),t.focus(),document.execCommand("copy")})},e.prototype.executeOnTempElement=function(e,t){var o=document.createElement("textarea");o.style.width="1px",o.style.height="1px",o.style.top="0px",o.style.left="0px",o.style.position="absolute",o.style.opacity="0.0";var i=this.gridCore.getRootGui();i.appendChild(o);try{var n=e(o);this.logger.log("Clipboard operation result: "+n)}catch(e){this.logger.log("Browser doesn\t support document.execComment('copy') for clipboard operations")}t?setTimeout(function(){t(o),i.removeChild(o)},100):i.removeChild(o)},e.prototype.dataToArray=function(e){for(var t=this.gridOptionsWrapper.getClipboardDeliminator(),o=new RegExp("(\\"+t+'|\\r?\\n|\\r|^)(?:"([^"]*(?:""[^"]*)*)"|([^"\\'+t+"\\r\\n]*))","gi"),i=[[]],n=null;n=o.exec(e);){var r=n[1];r.length&&r!==t&&i.push([]);var s=void 0;s=n[2]?n[2].replace(new RegExp('""',"g"),'"'):n[3],i[i.length-1].push(s)}return i},i([r.Autowired("csvCreator"),n("design:type",r.CsvCreator)],e.prototype,"csvCreator",void 0),i([r.Autowired("loggerFactory"),n("design:type",r.LoggerFactory)],e.prototype,"loggerFactory",void 0),i([r.Autowired("selectionController"),n("design:type",r.SelectionController)],e.prototype,"selectionController",void 0),i([r.Autowired("rangeController"),n("design:type",s.RangeController)],e.prototype,"rangeController",void 0),i([r.Autowired("rowModel"),n("design:type",Object)],e.prototype,"rowModel",void 0),i([r.Autowired("pinnedRowModel"),n("design:type",r.PinnedRowModel)],e.prototype,"pinnedRowModel",void 0),i([r.Autowired("valueService"),n("design:type",r.ValueService)],e.prototype,"valueService",void 0),i([r.Autowired("focusedCellController"),n("design:type",r.FocusedCellController)],e.prototype,"focusedCellController",void 0),i([r.Autowired("rowRenderer"),n("design:type",r.RowRenderer)],e.prototype,"rowRenderer",void 0),i([r.Autowired("columnController"),n("design:type",r.ColumnController)],e.prototype,"columnController",void 0),i([r.Autowired("eventService"),n("design:type",r.EventService)],e.prototype,"eventService",void 0),i([r.Autowired("cellNavigationService"),n("design:type",r.CellNavigationService)],e.prototype,"cellNavigationService",void 0),i([r.Autowired("gridOptionsWrapper"),n("design:type",r.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.Autowired("gridCore"),n("design:type",r.GridCore)],e.prototype,"gridCore",void 0),i([r.Autowired("columnApi"),n("design:type",r.ColumnApi)],e.prototype,"columnApi",void 0),i([r.Autowired("gridApi"),n("design:type",r.GridApi)],e.prototype,"gridApi",void 0),i([r.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),e=i([r.Bean("clipboardService")],e)}();t.ClipboardService=a},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(2),s=function(){function e(){this.bodyScrollListener=this.onBodyScroll.bind(this),this.dragging=!1}return e.prototype.init=function(){this.logger=this.loggerFactory.create("RangeController"),this.eventService.addEventListener(r.Events.EVENT_COLUMN_EVERYTHING_CHANGED,this.clearSelection.bind(this)),this.eventService.addEventListener(r.Events.EVENT_COLUMN_GROUP_OPENED,this.clearSelection.bind(this)),this.eventService.addEventListener(r.Events.EVENT_COLUMN_MOVED,this.clearSelection.bind(this)),this.eventService.addEventListener(r.Events.EVENT_COLUMN_PINNED,this.clearSelection.bind(this)),this.eventService.addEventListener(r.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,this.clearSelection.bind(this)),this.eventService.addEventListener(r.Events.EVENT_COLUMN_VISIBLE,this.clearSelection.bind(this))},e.prototype.setRangeToCell=function(e){if(this.gridOptionsWrapper.isEnableRangeSelection()){var t=this.updateSelectedColumns(e.column,e.column);if(t){var o={rowIndex:e.rowIndex,floating:e.floating,column:e.column},i={start:new r.GridCell(o),end:new r.GridCell(o),columns:t};this.cellRanges=[],this.cellRanges.push(i),this.activeRange=null,this.dispatchChangedEvent(!0,!1)}}},e.prototype.setRange=function(e){this.gridOptionsWrapper.isEnableRangeSelection()&&(this.cellRanges=[],this.addRange(e))},e.prototype.addRange=function(e){if(this.gridOptionsWrapper.isEnableRangeSelection()){var t=this.columnController.getColumnWithValidation(e.columnStart),o=this.columnController.getPrimaryColumn(e.columnEnd);if(t&&o){var i=this.updateSelectedColumns(t,o);if(i){var n={column:t,rowIndex:e.rowStart,floating:e.floatingStart},s={column:o,rowIndex:e.rowEnd,floating:e.floatingEnd},a={start:new r.GridCell(n),end:new r.GridCell(s),columns:i};this.cellRanges||(this.cellRanges=[]),this.cellRanges.push(a),this.dispatchChangedEvent(!0,!1)}}}},e.prototype.getCellRanges=function(){return this.cellRanges},e.prototype.isEmpty=function(){return r.Utils.missingOrEmpty(this.cellRanges)},e.prototype.isMoreThanOneCell=function(){if(r.Utils.missingOrEmpty(this.cellRanges))return!1;if(this.cellRanges.length>1)return!0;var e=this.cellRanges[0];return!(e.start.column===e.end.column&&e.start.rowIndex===e.end.rowIndex)},e.prototype.clearSelection=function(){r.Utils.missing(this.cellRanges)||(this.activeRange=null,this.cellRanges=null,this.dispatchChangedEvent(!0,!1))},e.prototype.onBodyScroll=function(){this.onDragging(this.lastMouseEvent)},e.prototype.isCellInAnyRange=function(e){return this.getCellRangeCount(e)>0},e.prototype.isCellInSpecificRange=function(e,t){var o=t.columns.indexOf(e.column)>=0,i=this.isRowInRange(e.rowIndex,e.floating,t);return o&&i},e.prototype.getCellRangeCount=function(e){var t=this;if(r.Utils.missingOrEmpty(this.cellRanges))return 0;var o=0;return this.cellRanges.forEach(function(i){t.isCellInSpecificRange(e,i)&&o++}),o},e.prototype.isRowInRange=function(e,t,o){var i=new r.GridRow(o.start.rowIndex,o.start.floating),n=new r.GridRow(o.end.rowIndex,o.end.floating),s=i.before(n)?i:n,a=i.before(n)?n:i,l=new r.GridRow(e,t);if(l.equals(s)||l.equals(a))return!0;var p=!l.before(s),u=l.before(a);return p&&u},e.prototype.onDragStart=function(e){if(this.gridOptionsWrapper.isEnableRangeSelection()){var t=e.ctrlKey||e.metaKey;!r.Utils.missing(this.cellRanges)&&t||(this.cellRanges=[]);var o=this.mouseEventService.getGridCellForEvent(e);r.Utils.missing(o)||(this.createNewActiveRange(o),this.gridPanel.addScrollEventListener(this.bodyScrollListener),this.dragging=!0,this.lastMouseEvent=e,this.selectionChanged(!1,!0))}},e.prototype.createNewActiveRange=function(e){var t={column:e.column,rowIndex:e.rowIndex,floating:e.floating};this.activeRange={start:new r.GridCell(t),end:new r.GridCell(t),columns:[e.column]},this.cellRanges.push(this.activeRange)},e.prototype.selectionChanged=function(e,t){this.activeRange.columns=this.updateSelectedColumns(this.activeRange.start.column,this.activeRange.end.column),this.dispatchChangedEvent(e,t)},e.prototype.dispatchChangedEvent=function(e,t){var o={type:r.Events.EVENT_RANGE_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi,finished:e,started:t};this.eventService.dispatchEvent(o)},e.prototype.onDragStop=function(){this.dragging&&(this.gridPanel.removeScrollEventListener(this.bodyScrollListener),this.lastMouseEvent=null,this.dragging=!1,this.dispatchChangedEvent(!0,!1))},e.prototype.onDragging=function(e){if(this.dragging){this.lastMouseEvent=e;var t=this.mouseEventService.getGridCellForEvent(e);if(!r.Utils.missing(t)){var o=!1;t.column!==this.activeRange.end.column&&(this.activeRange.end.column=t.column,o=!0);var i=!1;t.rowIndex===this.activeRange.end.rowIndex&&t.floating===this.activeRange.end.floating||(this.activeRange.end.rowIndex=t.rowIndex,this.activeRange.end.floating=t.floating,i=!0),(o||i)&&this.selectionChanged(!1,!1)}}},e.prototype.updateSelectedColumns=function(e,t){var o=this.columnController.getAllDisplayedColumns(),i=o.indexOf(e),n=o.indexOf(t);if(i<0)return console.log("ag-Grid: column "+e.getId()+" is not visible"),null;if(n<0)return console.log("ag-Grid: column "+t.getId()+" is not visible"),null;for(var r=Math.min(i,n),s=Math.max(i,n),a=[],l=r;l<=s;l++)a.push(o[l]);return a},i([r.Autowired("loggerFactory"),n("design:type",r.LoggerFactory)],e.prototype,"loggerFactory",void 0),i([r.Autowired("gridPanel"),n("design:type",r.GridPanel)],e.prototype,"gridPanel",void 0),i([r.Autowired("rowModel"),n("design:type",Object)],e.prototype,"rowModel",void 0),i([r.Autowired("eventService"),n("design:type",r.EventService)],e.prototype,"eventService",void 0),i([r.Autowired("columnController"),n("design:type",r.ColumnController)],e.prototype,"columnController",void 0),i([r.Autowired("rowRenderer"),n("design:type",r.RowRenderer)],e.prototype,"rowRenderer",void 0),i([r.Autowired("focusedCellController"),n("design:type",r.FocusedCellController)],e.prototype,"focusedCellController",void 0),i([r.Autowired("mouseEventService"),n("design:type",r.MouseEventService)],e.prototype,"mouseEventService",void 0),i([r.Autowired("gridOptionsWrapper"),n("design:type",r.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.Autowired("columnApi"),n("design:type",r.ColumnApi)],e.prototype,"columnApi",void 0),i([r.Autowired("gridApi"),n("design:type",r.GridApi)],e.prototype,"gridApi",void 0),i([r.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),e=i([r.Bean("rangeController")],e)}();t.RangeController=s},function(e,t,o){"use strict";function i(e){for(var t=null,o=e.length,i=0;i<o;i++)"number"==typeof e[i]&&(null===t?t=e[i]:t+=e[i]);return t}function n(e){return e.length>=0?e[0]:null}function r(e){return e.length>=0?e[e.length-1]:null}function s(e){for(var t=null,o=e.length,i=0;i<o;i++)"number"==typeof e[i]&&(null===t?t=e[i]:t>e[i]&&(t=e[i]));return t}function a(e){for(var t=null,o=e.length,i=0;i<o;i++)"number"==typeof e[i]&&(null===t?t=e[i]:t<e[i]&&(t=e[i]));return t}function l(e){for(var t={value:0,toString:function(){return this.value.toString()},toNumber:function(){return this.value}},o=e.length,i=0;i<o;i++){d.Utils.exists(e[i])&&"number"==typeof e[i].value?t.value+=e[i].value:t.value++}return t}function p(e){for(var t=0,o=0,i=e.length,n=0;n<i;n++){var r=e[n],s=d.Utils.exists(r)&&"number"==typeof r.value&&"number"==typeof r.count;"number"==typeof r?(t+=r,o++):s&&(t+=r.value*r.count,o+=r.count)}var a=null;return 0!==o&&(a=t/o),{count:o,value:a,toString:function(){return"number"==typeof this.value?this.value.toString():""},toNumber:function(){return this.value}}}var u=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var d=o(2),h=function(){function e(){this.aggFuncsMap={},this.initialised=!1}return t=e,e.prototype.init=function(){this.initialised||(this.initialised=!0,this.initialiseWithDefaultAggregations(),this.addAggFuncs(this.gridOptionsWrapper.getAggFuncs()))},e.prototype.initialiseWithDefaultAggregations=function(){this.aggFuncsMap[t.AGG_SUM]=i,this.aggFuncsMap[t.AGG_FIRST]=n,this.aggFuncsMap[t.AGG_LAST]=r,this.aggFuncsMap[t.AGG_MIN]=s,this.aggFuncsMap[t.AGG_MAX]=a,this.aggFuncsMap[t.AGG_COUNT]=l,this.aggFuncsMap[t.AGG_AVG]=p},e.prototype.getDefaultAggFunc=function(e){var o=this.getFuncNames(e),i=o.indexOf(t.AGG_SUM)>=0,n=d._.exists(this.aggFuncsMap[t.AGG_SUM]);return i&&n?t.AGG_SUM:d.Utils.existsAndNotEmpty(o)?o[0]:null},e.prototype.addAggFuncs=function(e){d.Utils.iterateObject(e,this.addAggFunc.bind(this))},e.prototype.addAggFunc=function(e,t){this.init(),this.aggFuncsMap[e]=t},e.prototype.getAggFunc=function(e){return this.init(),this.aggFuncsMap[e]},e.prototype.getFuncNames=function(e){var t=e.getColDef().allowedAggFuncs;return d._.exists(t)?t:Object.keys(this.aggFuncsMap).sort()},e.prototype.clear=function(){this.aggFuncsMap={}},e.AGG_SUM="sum",e.AGG_FIRST="first",e.AGG_LAST="last",e.AGG_MIN="min",e.AGG_MAX="max",e.AGG_COUNT="count",e.AGG_AVG="avg",u([d.Autowired("gridOptionsWrapper"),c("design:type",d.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),u([d.PostConstruct,c("design:type",Function),c("design:paramtypes",[]),c("design:returntype",void 0)],e.prototype,"init",null),e=t=u([d.Bean("aggFuncService")],e);var t}();t.AggFuncService=h},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(2),s=function(){function e(){this.groupIdSequence=new r.NumberSequence(1)}return e.prototype.execute=function(e){var t,o=e.rowNode,i=e.changedPath,n=e.rowNodeTransaction,s=this.columnController.getRowGroupColumns();t=this.gridOptionsWrapper.isGroupSuppressRow()?-1:this.gridOptionsWrapper.getGroupDefaultExpanded();var a=!this.gridOptionsWrapper.isSuppressParentsInRowNodes(),l=this.columnController.isPivotMode();s.length>0&&r._.exists(n)?this.handleTransaction(n,i,o,s,t,a,l):this.shotgunResetEverything(o,s,t,a,l)},e.prototype.handleTransaction=function(e,t,o,i,n,r,s){e.add&&this.insertRowNodesIntoGroups(e.add,t,o,i,n,r,s),e.update&&this.checkParents(e.update,t,o,i,n,r,s),e.remove&&this.removeRowNodesFromGroups(e.remove,t,o)},e.prototype.checkParents=function(e,t,o,i,n,r,s){var a=this;e.forEach(function(e){t&&t.addParentNode(e.parent);var l=i.map(function(t){return a.getKeyForNode(t,e)}),p=e.parent,u=!0;l.forEach(function(e){p.key!==e&&(u=!1),p=p.parent}),u||(a.removeRowNodeFromGroups(e,o),a.insertRowNodeIntoGroups(e,o,i,n,r,s),t&&t.addParentNode(e.parent))})},e.prototype.removeRowNodesFromGroups=function(e,t,o){var i=this;e.forEach(function(e){i.removeRowNodeFromGroups(e,o),t&&t.addParentNode(e.parent)})},e.prototype.removeRowNodeFromGroups=function(e,t){r._.removeFromArray(e.parent.childrenAfterGroup,e);for(var o=e.parent;o!==t;){r._.removeFromArray(o.allLeafChildren,e);0===o.allLeafChildren.length&&this.removeGroupFromParent(o),o=o.parent}},e.prototype.removeGroupFromParent=function(e){r._.removeFromArray(e.parent.childrenAfterGroup,e),e.parent.childrenMapped[e.key]=void 0},e.prototype.shotgunResetEverything=function(e,t,o,i,n){e.leafGroup=0===t.length,e.childrenAfterGroup=[],e.childrenMapped={},this.insertRowNodesIntoGroups(e.allLeafChildren,null,e,t,o,i,n)},e.prototype.insertRowNodesIntoGroups=function(e,t,o,i,n,r,s){var a=this;e.forEach(function(e){a.insertRowNodeIntoGroups(e,o,i,n,r,s),t&&t.addParentNode(e.parent)})},e.prototype.insertRowNodeIntoGroups=function(e,t,o,i,n,r){var s=this,a=t;o.forEach(function(t,l){a=s.getOrCreateNextGroup(a,e,t,i,l,n,o.length,r),a.allLeafChildren.push(e)}),e.parent=a,e.level=o.length,a.childrenAfterGroup.push(e)},e.prototype.getOrCreateNextGroup=function(e,t,o,i,n,r,s,a){var l=this.getKeyForNode(o,t),p=e.childrenMapped[l];return p||(p=this.createSubGroup(l,o,e,i,n,r,s,a),e.childrenMapped[l]=p,e.childrenAfterGroup.push(p)),p},e.prototype.getKeyForNode=function(e,t){var o=this.valueService.getValue(e,t),i=e.getColDef().keyCreator;return i?i({value:o}):o},e.prototype.createSubGroup=function(e,t,o,i,n,s,a,l){var p=new r.RowNode;return this.context.wireBean(p),p.group=!0,p.field=t.getColDef().field,p.rowGroupColumn=t,p.groupData={},this.columnController.getGroupDisplayColumns().forEach(function(t){t.isRowGroupDisplayed(p.rowGroupColumn.getId())&&(p.groupData[t.getColId()]=e)}),p.id=(-1*this.groupIdSequence.next()).toString(),p.key=e,p.level=n,p.leafGroup=n===a-1,l&&p.leafGroup?p.expanded=!1:p.expanded=this.isExpanded(i,n),p.allLeafChildren=[],p.setAllChildrenCount(0),p.rowGroupIndex=n,p.childrenAfterGroup=[],p.childrenMapped={},p.parent=s?o:null,p},e.prototype.isExpanded=function(e,t){return-1===e||t<e},i([r.Autowired("selectionController"),n("design:type",r.SelectionController)],e.prototype,"selectionController",void 0),i([r.Autowired("gridOptionsWrapper"),n("design:type",r.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.Autowired("columnController"),n("design:type",r.ColumnController)],e.prototype,"columnController",void 0),i([r.Autowired("valueService"),n("design:type",r.ValueService)],e.prototype,"valueService",void 0),i([r.Autowired("eventService"),n("design:type",r.EventService)],e.prototype,"eventService",void 0),i([r.Autowired("context"),n("design:type",r.Context)],e.prototype,"context",void 0),e=i([r.Bean("groupStage")],e)}();t.GroupStage=s},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(2),s=o(149),a=o(146),l=function(){function e(){}return e.prototype.execute=function(e){var t=e.rowNode,o=e.changedPath;if(!r._.exists(this.gridOptionsWrapper.getNodeChildDetailsFunc())){var i=this.columnController.isPivotActive(),n=this.columnController.getValueColumns(),s=i?this.columnController.getPivotColumns():[];this.recursivelyCreateAggData(t,o,n,s)}},e.prototype.recursivelyCreateAggData=function(e,t,o,i){var n=this;if(e.childrenAfterFilter.forEach(function(e){e.group&&n.recursivelyCreateAggData(e,t,o,i)}),-1===e.level){var r=!this.columnController.isPivotMode();if(this.gridOptionsWrapper.isSuppressAggAtRootLevel()&&r)return}t&&!t.isInPath(e)||this.aggregateRowNode(e,t,o,i)},e.prototype.aggregateRowNode=function(e,t,o,i){var n,r=0===o.length,s=0===i.length,a=this.gridOptionsWrapper.getGroupRowAggNodesFunc();n=e.group&&a?a(e.childrenAfterFilter):r?null:e.group&&s?this.aggregateRowNodeUsingValuesOnly(e,t,o):this.aggregateRowNodeUsingValuesAndPivot(e),e.setAggData(n),e.sibling&&e.sibling.setAggData(n)},e.prototype.aggregateRowNodeUsingValuesAndPivot=function(e){var t=this,o={},i=this.pivotStage.getPivotColumnDefs();return i.filter(function(e){return!r.Utils.exists(e.pivotTotalColumnIds)}).forEach(function(i){var n,r=i.pivotKeys,s=i.pivotValueColumn;n=e.leafGroup?t.getValuesFromMappedSet(e.childrenMapped,r,s):t.getValuesPivotNonLeaf(e,i.colId),o[i.colId]=t.aggregateValues(n,s.getAggFunc())}),i.filter(function(e){return r.Utils.exists(e.pivotTotalColumnIds)}).forEach(function(e){var i=[];e.pivotTotalColumnIds.forEach(function(e){i.push(o[e])}),o[e.colId]=t.aggregateValues(i,e.aggFunc)}),o},e.prototype.aggregateRowNodeUsingValuesOnly=function(e,t,o){var i=this,n={},r=t?t.getValueColumnsForNode(e,o):o,s=t?t.getNotValueColumnsForNode(e,o):null,a=this.getValuesNormal(e,r),l=e.aggData;return r.forEach(function(e,t){n[e.getId()]=i.aggregateValues(a[t],e.getAggFunc())}),s&&l&&s.forEach(function(e){n[e.getId()]=l[e.getId()]}),n},e.prototype.getValuesPivotNonLeaf=function(e,t){var o=[];return e.childrenAfterFilter.forEach(function(e){var i=e.aggData[t];o.push(i)}),o},e.prototype.getValuesFromMappedSet=function(e,t,o){var i=this,n=e;if(t.forEach(function(e){return n=n?n[e]:null}),!n)return[];var r=[];return n.forEach(function(e){var t=i.valueService.getValue(o,e);r.push(t)}),r},e.prototype.getValuesNormal=function(e,t){var o=[];t.forEach(function(){return o.push([])});for(var i=t.length,n=e.childrenAfterFilter.length,r=0;r<n;r++)for(var s=e.childrenAfterFilter[r],a=0;a<i;a++){var l=t[a],p=void 0;p=s.group?s.aggData[l.getId()]:this.valueService.getValue(l,s),o[a].push(p)}return o},e.prototype.aggregateValues=function(e,t){var o;return o="string"==typeof t?this.aggFuncService.getAggFunc(t):t,"function"!=typeof o?(console.error("ag-Grid: unrecognised aggregation function "+t),null):o(e)},i([r.Autowired("gridOptionsWrapper"),n("design:type",r.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.Autowired("columnController"),n("design:type",r.ColumnController)],e.prototype,"columnController",void 0),i([r.Autowired("valueService"),n("design:type",r.ValueService)],e.prototype,"valueService",void 0),i([r.Autowired("pivotStage"),n("design:type",s.PivotStage)],e.prototype,"pivotStage",void 0),i([r.Autowired("aggFuncService"),n("design:type",a.AggFuncService)],e.prototype,"aggFuncService",void 0),e=i([r.Bean("aggregationStage")],e)}();t.AggregationStage=l},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(2),s=o(150),a=function(){function e(){this.uniqueValues={}}return e.prototype.execute=function(e){var t=e.rowNode;this.columnController.isPivotActive()?this.executePivotOn(t):this.executePivotOff()},e.prototype.executePivotOff=function(){this.aggregationColumnsHashLastTime=null,this.uniqueValues={},this.columnController.setSecondaryColumns(null)},e.prototype.executePivotOn=function(e){var t=this.bucketUpRowNodes(e),o=this.setUniqueValues(t),i=this.columnController.getValueColumns(),n=i.map(function(e){return e.getId()}).join("#"),r=i.map(function(e){return e.getAggFunc().toString()}).join("#"),s=this.aggregationColumnsHashLastTime!==n,a=this.aggregationFuncsHashLastTime!==r;if(this.aggregationColumnsHashLastTime=n,this.aggregationFuncsHashLastTime=r,o||s||a){var l=this.pivotColDefService.createPivotColumnDefs(this.uniqueValues);this.pivotColumnGroupDefs=l.pivotColumnGroupDefs,this.pivotColumnDefs=l.pivotColumnDefs,this.columnController.setSecondaryColumns(this.pivotColumnGroupDefs)}},e.prototype.setUniqueValues=function(e){return!(JSON.stringify(e)===JSON.stringify(this.uniqueValues)||(this.uniqueValues=e,0))},e.prototype.bucketUpRowNodes=function(e){var t=this,o={},i=function(e){e.leafGroup?t.bucketRowNode(e,o):e.childrenAfterFilter.forEach(function(e){i(e)})};return i(e),o},e.prototype.bucketRowNode=function(e,t){var o=this.columnController.getPivotColumns();if(0===o.length)return void(e.childrenMapped=null);e.childrenMapped=this.bucketChildren(e.childrenAfterFilter,o,0,t)},e.prototype.bucketChildren=function(e,t,o,i){var n=this,s={},a=t[o];if(e.forEach(function(e){var t=n.valueService.getValue(a,e);r.Utils.missing(t)&&(t=""),i[t]||(i[t]={}),s[t]||(s[t]=[]),s[t].push(e)}),o===t.length-1)return s;var l={};return r.Utils.iterateObject(s,function(e,r){l[e]=n.bucketChildren(r,t,o+1,i[e])}),l},e.prototype.getPivotColumnDefs=function(){return this.pivotColumnDefs},i([r.Autowired("rowModel"),n("design:type",Object)],e.prototype,"rowModel",void 0),i([r.Autowired("valueService"),n("design:type",r.ValueService)],e.prototype,"valueService",void 0),i([r.Autowired("columnController"),n("design:type",r.ColumnController)],e.prototype,"columnController",void 0),i([r.Autowired("eventService"),n("design:type",r.EventService)],e.prototype,"eventService",void 0),i([r.Autowired("pivotColDefService"),n("design:type",s.PivotColDefService)],e.prototype,"pivotColDefService",void 0),e=i([r.Bean("pivotStage")],e)}();t.PivotStage=a},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(2),s=function(){function e(){}return e.prototype.createPivotColumnDefs=function(e){var t=[],o=[],i=this.columnController.getPivotColumns(),n=i.length,s=new r.NumberSequence;return this.recursivelyAddGroup(t,o,1,e,[],s,n,i),this.addPivotTotalsToGroups(t,o,s),{pivotColumnGroupDefs:t,pivotColumnDefs:o.map(function(e){return r.Utils.cloneObject(e)})}},e.prototype.recursivelyAddGroup=function(e,t,o,i,n,s,a,l){var p=this;r.Utils.iterateObject(i,function(i,r){var u=n.slice(0);if(u.push(i),o!==a){var c={children:[],headerName:i,pivotKeys:u,columnGroupShow:"open",groupId:"pivot"+s.next()};e.push(c),p.recursivelyAddGroup(c.children,t,o+1,r,u,s,a,l)}else{var d=p.columnController.getValueColumns(),h={children:[],headerName:i,pivotKeys:u,columnGroupShow:"open",groupId:"pivot"+s.next()};if(0===d.length){var f=p.createColDef(null,"-",u,s);h.children.push(f),t.push(f)}else d.forEach(function(e){var o=p.columnController.getDisplayNameForColumn(e,"header"),i=p.createColDef(e,o,u,s);i.columnGroupShow="open",h.children.push(i),t.push(i)});e.push(h)}});var u=l[o-1].getColDef(),c=u.pivotComparator,d=this.headerNameComparator.bind(this,c);e.sort(d)},e.prototype.addPivotTotalsToGroups=function(e,t,o){var i=this;if(this.gridOptionsWrapper.isPivotTotals()){var n=this.columnController.getValueColumns(),r=n.map(function(e){return e.getAggFunc()});if(r&&!(r.length<1)&&this.sameAggFuncs(r)){var s=this.columnController.getValueColumns()[0];e.forEach(function(e){i.recursivelyAddPivotTotal(e,t,o,s)})}}},e.prototype.recursivelyAddPivotTotal=function(e,t,o,i){var n=this,r=e;if(!r.children)return[e.colId];var s=[];if(r.children.forEach(function(e){var r=n.recursivelyAddPivotTotal(e,t,o,i);s=s.concat(r)}),r.children.length>1){var a=this.createColDef(i,"Total",e.pivotKeys,o);a.pivotTotalColumnIds=s,a.aggFunc=i.getAggFunc(),e.children.unshift(a),t.push(a)}return s},e.prototype.createColDef=function(e,t,o,i){var n={};if(e){var s=e.getColDef();r.Utils.assign(n,s),n.hide=!1}return n.headerName=t,n.colId="pivot_"+i.next(),n.field=n.colId,n.pivotKeys=o,n.pivotValueColumn=e,n},e.prototype.sameAggFuncs=function(e){if(1==e.length)return!0;for(var t=1;t<e.length;t++)if(e[t]!==e[0])return!1;return!0},e.prototype.headerNameComparator=function(e,t,o){return e?e(t.headerName,o.headerName):t.headerName<o.headerName?-1:t.headerName>o.headerName?1:0},i([r.Autowired("columnController"),n("design:type",r.ColumnController)],e.prototype,"columnController",void 0),i([r.Autowired("gridOptionsWrapper"),n("design:type",r.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),e=i([r.Bean("pivotColDefService")],e)}();t.PivotColDefService=s},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(2),s=o(152),a=o(156),l=o(158),p=function(){function e(){}return t=e,e.prototype.init=function(){this.filterManager.registerFilter("set",s.SetFilter),this.cellEditorFactory.addCellEditor(t.RICH_SELECT,a.RichSelectCellEditor),this.licenseManager.validateLicense()},e.RICH_SELECT="richSelect",i([r.Autowired("filterManager"),n("design:type",r.FilterManager)],e.prototype,"filterManager",void 0),i([r.Autowired("cellEditorFactory"),n("design:type",r.CellEditorFactory)],e.prototype,"cellEditorFactory",void 0),i([r.Autowired("licenseManager"),n("design:type",l.LicenseManager)],e.prototype,"licenseManager",void 0),i([r.PreConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),e=t=i([r.Bean("enterpriseBoot")],e);var t}();t.EnterpriseBoot=p},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),n=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=o(2),a=o(153),l=o(154),p=o(155),u=function(e){function t(){var t=e.call(this)||this;return t.selected=!0,t}return i(t,e),t.prototype.customInit=function(){var e=this,t=function(){e.onFilterChanged()},o=this.filterParams&&null!=this.filterParams.debounceMs?this.filterParams.debounceMs:0;this.debounceFilterChanged=s._.debounce(t,o),this.eCheckedIcon=s._.createIconNoSpan("checkboxChecked",this.gridOptionsWrapper,this.filterParams.column),this.eUncheckedIcon=s._.createIconNoSpan("checkboxUnchecked",this.gridOptionsWrapper,this.filterParams.column),this.eIndeterminateCheckedIcon=s._.createIconNoSpan("checkboxUnchecked",this.gridOptionsWrapper,this.filterParams.column)},t.prototype.updateCheckboxIcon=function(){if(this.eSelectAll.children)for(var e=0;e<this.eSelectAll.children.length;e++)this.eSelectAll.removeChild(this.eSelectAll.children.item(e));this.eSelectAll.indeterminate?this.eSelectAll.appendChild(this.eIndeterminateCheckedIcon):this.eSelectAll.checked?this.eSelectAll.appendChild(this.eCheckedIcon):this.eSelectAll.appendChild(this.eUncheckedIcon)},t.prototype.initialiseFilterBodyUi=function(){var e=this;this.virtualList=new p.VirtualList,this.context.wireBean(this.virtualList),this.getHtmlElement().querySelector("#richList").appendChild(this.virtualList.getHtmlElement()),s.Utils.exists(this.filterParams.cellHeight)&&this.virtualList.setRowHeight(this.filterParams.cellHeight),this.virtualList.setComponentCreator(this.createSetListItem.bind(this)),this.model=new a.SetFilterModel(this.filterParams.colDef,this.filterParams.rowModel,this.filterParams.valueGetter,this.filterParams.doesRowPassOtherFilter,this.filterParams.suppressSorting),this.virtualList.setModel(new c(this.model)),s._.setVisible(this.getHtmlElement().querySelector("#ag-mini-filter"),!this.filterParams.suppressMiniFilter),this.eMiniFilter.value=this.model.getMiniFilter(),this.addDestroyableEventListener(this.eMiniFilter,"input",function(){return e.onMiniFilterChanged()}),this.updateCheckboxIcon(),this.eSelectAllContainer.onclick=this.onSelectAll.bind(this),this.updateSelectAll(),this.virtualList.refresh()},t.prototype.modelFromFloatingFilter=function(e){return[e]},t.prototype.refreshFilterBodyUi=function(){},t.prototype.createSetListItem=function(e){var t=this,o=new l.SetFilterListItem(e,this.filterParams.column);return this.context.wireBean(o),o.setSelected(this.model.isValueSelected(e)),o.addEventListener(l.SetFilterListItem.EVENT_SELECTED,function(){t.onItemSelected(e,o.isSelected())}),o},t.prototype.afterGuiAttached=function(e){this.virtualList.refresh(),this.eMiniFilter.focus()},t.prototype.isFilterActive=function(){return this.model.isFilterActive()},t.prototype.doesFilterPass=function(e){if(this.model.isEverythingSelected()&&!this.filterParams.selectAllOnMiniFilter)return!0;if(this.model.isNothingSelected()&&!this.filterParams.selectAllOnMiniFilter)return!1;var t=this.filterParams.valueGetter(e.node);if(this.filterParams.colDef.keyCreator&&(t=this.filterParams.colDef.keyCreator({value:t})),t=s.Utils.makeNull(t),Array.isArray(t)){for(var o=0;o<t.length;o++)if(this.model.isValueSelected(t[o]))return!0;return!1}return this.model.isValueSelected(t)},t.prototype.onNewRowsLoaded=function(){var e=this.filterParams&&"keep"===this.filterParams.newRowsAction,t=this.eSelectAll&&this.eSelectAll.checked&&!this.eSelectAll.indeterminate;this.model.refreshAfterNewRowsLoaded(e,t),this.updateSelectAll(),this.virtualList.refresh()},t.prototype.setFilterValues=function(e){var t=this.filterParams&&"keep"===this.filterParams.newRowsAction,o=this.eSelectAll&&this.eSelectAll.checked&&!this.eSelectAll.indeterminate;this.model.setUsingProvidedSet(!0),this.model.refreshValues(e,t,o),this.updateSelectAll(),this.virtualList.refresh()},t.prototype.resetFilterValues=function(){this.model.setUsingProvidedSet(!1),this.onNewRowsLoaded()},t.prototype.onAnyFilterChanged=function(){this.model.refreshAfterAnyFilterChanged(),this.virtualList.refresh()},t.prototype.bodyTemplate=function(){var e=this.translate.bind(this);return'<div>\n                    <div class="ag-filter-header-container" id="ag-mini-filter">\n                        <input class="ag-filter-filter" type="text" placeholder="'+e("searchOoo")+'"/>\n                    </div>\n                    <div class="ag-filter-header-container">\n                        <label id="selectAllContainer">\n                            <div id="selectAll" class="ag-filter-checkbox"></div>\n                            <span class="ag-filter-value">('+e("selectAll")+')</span>\n                        </label>\n                    </div>\n                    <div id="richList" class="ag-set-filter-list"></div>                    \n                </div>'},t.prototype.updateSelectAll=function(){this.model.isEverythingSelected()?(this.eSelectAll.indeterminate=!1,this.eSelectAll.checked=!0):this.model.isNothingSelected()?(this.eSelectAll.indeterminate=!1,this.eSelectAll.checked=!1):this.eSelectAll.indeterminate=!0,this.updateCheckboxIcon()},t.prototype.onMiniFilterChanged=function(){this.model.setMiniFilter(this.eMiniFilter.value)&&this.virtualList.refresh(),this.updateSelectAll()},t.prototype.onSelectAll=function(){this.eSelectAll.checked=!this.eSelectAll.checked,this.eSelectAll.checked?this.model.selectEverything():this.model.selectNothing(),this.virtualList.refresh(),this.debounceFilterChanged(),this.updateSelectAll()},t.prototype.onItemSelected=function(e,t){t?this.model.selectValue(e):this.model.unselectValue(e),this.updateSelectAll(),this.debounceFilterChanged()},t.prototype.setMiniFilter=function(e){this.model.setMiniFilter(e),this.eMiniFilter.value=this.model.getMiniFilter()},t.prototype.getMiniFilter=function(){return this.model.getMiniFilter()},t.prototype.selectEverything=function(){this.model.selectEverything(),this.updateSelectAll(),this.virtualList.refresh()},t.prototype.selectNothing=function(){this.model.selectNothing(),this.updateSelectAll(),this.virtualList.refresh()},t.prototype.unselectValue=function(e){this.model.unselectValue(e),this.updateSelectAll(),this.virtualList.refresh()},t.prototype.selectValue=function(e){this.model.selectValue(e),this.updateSelectAll(),this.virtualList.refresh()},t.prototype.isValueSelected=function(e){return this.model.isValueSelected(e)},t.prototype.isEverythingSelected=function(){return this.model.isEverythingSelected()},t.prototype.isNothingSelected=function(){return this.model.isNothingSelected()},t.prototype.getUniqueValueCount=function(){return this.model.getUniqueValueCount()},t.prototype.getUniqueValue=function(e){return this.model.getUniqueValue(e)},t.prototype.serialize=function(){return this.model.getModel()},t.prototype.parse=function(e){this.model.setModel(e),this.updateSelectAll(),this.virtualList.refresh()},t.prototype.resetState=function(){this.setMiniFilter(null),this.model.setModel(null,!0),this.selectEverything()},n([s.QuerySelector("#selectAll"),r("design:type",HTMLInputElement)],t.prototype,"eSelectAll",void 0),n([s.QuerySelector("#selectAllContainer"),r("design:type",HTMLElement)],t.prototype,"eSelectAllContainer",void 0),n([s.QuerySelector(".ag-filter-filter"),r("design:type",HTMLInputElement)],t.prototype,"eMiniFilter",void 0),t}(s.BaseFilter);t.SetFilter=u;var c=function(){function e(e){this.model=e}return e.prototype.getRowCount=function(){return this.model.getDisplayedValueCount()},e.prototype.getRow=function(e){return this.model.getDisplayedValue(e)},e}()},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(2),n=o(2),r="___NULL___",s=function(){function e(e,t,o,r,s){this.suppressSorting=s,this.colDef=e,this.rowModel=t,this.valueGetter=o,this.doesRowPassOtherFilters=r,this.filterParams=this.colDef.filterParams?this.colDef.filterParams:{},i.Utils.exists(this.filterParams)?(this.usingProvidedSet=i.Utils.exists(this.filterParams.values),this.showingAvailableOnly=!0!==this.filterParams.suppressRemoveEntries):(this.usingProvidedSet=!1,this.showingAvailableOnly=!0),this.createAllUniqueValues(),this.createAvailableUniqueValues(),this.displayedValues=this.availableUniqueValues,this.miniFilter=null,this.selectedValuesMap={},this.selectEverything(),this.formatter=this.filterParams.textFormatter?this.filterParams.textFormatter:n.TextFilter.DEFAULT_FORMATTER}return e.prototype.refreshAfterNewRowsLoaded=function(e,t){this.createAllUniqueValues(),this.refreshSelection(e,t)},e.prototype.refreshValues=function(e,t,o){this.setValues(e),this.refreshSelection(t,o)},e.prototype.refreshSelection=function(e,t){this.createAvailableUniqueValues();var o=Object.keys(this.selectedValuesMap);this.selectedValuesMap={},this.processMiniFilter(),e?this.setModel(o,t):this.selectEverything()},e.prototype.refreshAfterAnyFilterChanged=function(){this.showingAvailableOnly&&(this.createAvailableUniqueValues(),this.processMiniFilter())},e.prototype.createAllUniqueValues=function(){var e=this.extractValuesToUse();this.setValues(e)},e.prototype.setUsingProvidedSet=function(e){this.usingProvidedSet=e},e.prototype.setValues=function(e){this.allUniqueValues=e,this.suppressSorting||this.sortValues(this.allUniqueValues)},e.prototype.extractValuesToUse=function(){var e;if(this.usingProvidedSet)e=i.Utils.toStrings(this.filterParams.values);else{var t=this.getUniqueValues(!1);e=i.Utils.toStrings(t)}return e},e.prototype.createAvailableUniqueValues=function(){if(!this.showingAvailableOnly||this.usingProvidedSet)return void(this.availableUniqueValues=this.allUniqueValues);var e=this.getUniqueValues(!0);this.availableUniqueValues=i.Utils.toStrings(e),this.sortValues(this.availableUniqueValues)},e.prototype.sortValues=function(e){this.filterParams&&this.filterParams.comparator?e.sort(this.filterParams.comparator):this.colDef.comparator?e.sort(this.colDef.comparator):e.sort(i.Utils.defaultComparator)},e.prototype.getUniqueValues=function(e){function t(e){i.hasOwnProperty(e)||(n.push(e),i[e]=1)}var o=this,i={},n=[];return this.rowModel.forEachLeafNode?(this.rowModel.forEachLeafNode(function(i){if(!i.group){var n=o.valueGetter(i);if(o.colDef.keyCreator&&(n=o.colDef.keyCreator({value:n})),""!==n&&void 0!==n||(n=null),e&&!o.doesRowPassOtherFilters(i))return;if(null!=n&&Array.isArray(n))for(var r=0;r<n.length;r++)t(n[r]);else t(n)}}),n):(console.error("ag-Grid: Set Filter cannot initialise because you are using a row model that does not contain all rows in the browser. Either use a different filter type, or configure Set Filter such that you provide it with values"),[])},e.prototype.setMiniFilter=function(e){return e=i.Utils.makeNull(e),this.miniFilter!==e&&(this.miniFilter=e,this.processMiniFilter(),!0)},e.prototype.getMiniFilter=function(){return this.miniFilter},e.prototype.processMiniFilter=function(){if(null===this.miniFilter)return void(this.displayedValues=this.availableUniqueValues);this.displayedValues=[];for(var e=this.formatter(this.miniFilter),t=0,o=this.availableUniqueValues.length;t<o;t++){var i=this.availableUniqueValues[t];if(i){var n=this.formatter(i.toString());null!==n&&n.indexOf(e)>=0&&this.displayedValues.push(i)}}},e.prototype.getDisplayedValueCount=function(){return this.displayedValues.length},e.prototype.getDisplayedValue=function(e){return this.displayedValues[e]},e.prototype.selectEverything=function(){this.filterParams.selectAllOnMiniFilter&&this.miniFilter?this.selectOn(this.displayedValues):this.selectOn(this.allUniqueValues)},e.prototype.selectOn=function(e){for(var t=e.length,o=0;o<t;o++){var i=e[o],n=this.valueToKey(i);this.selectedValuesMap[n]=null}this.selectedValuesCount=t},e.prototype.valueToKey=function(e){return null===e?r:e},e.prototype.keyToValue=function(e){return e===r?null:e},e.prototype.isFilterActive=function(){return this.allUniqueValues.length!==this.selectedValuesCount},e.prototype.selectNothing=function(){var e=this;this.filterParams.selectAllOnMiniFilter&&this.miniFilter?this.displayedValues.forEach(function(t){return e.unselectValue(t)}):(this.selectedValuesMap={},this.selectedValuesCount=0)},e.prototype.getUniqueValueCount=function(){return this.allUniqueValues.length},e.prototype.getUniqueValue=function(e){return this.allUniqueValues[e]},e.prototype.unselectValue=function(e){var t=this.valueToKey(e);void 0!==this.selectedValuesMap[t]&&(delete this.selectedValuesMap[t],this.selectedValuesCount--)},e.prototype.selectValue=function(e){var t=this.valueToKey(e);void 0===this.selectedValuesMap[t]&&(this.selectedValuesMap[t]=null,this.selectedValuesCount++)},e.prototype.isValueSelected=function(e){var t=this.valueToKey(e);return void 0!==this.selectedValuesMap[t]},e.prototype.isEverythingSelected=function(){var e=this;return this.filterParams.selectAllOnMiniFilter&&this.miniFilter?this.displayedValues.filter(function(t){return e.isValueSelected(t)}).length===this.displayedValues.length:this.allUniqueValues.length===this.selectedValuesCount},e.prototype.isNothingSelected=function(){var e=this;return this.filterParams.selectAllOnMiniFilter&&this.miniFilter?0===this.displayedValues.filter(function(t){return e.isValueSelected(t)}).length:0===this.selectedValuesCount},e.prototype.getModel=function(){var e=this;if(!this.isFilterActive())return null;var t=[];return i.Utils.iterateObject(this.selectedValuesMap,function(o){var i=e.keyToValue(o);t.push(i)}),t},e.prototype.setModel=function(e,t){if(void 0===t&&(t=!1),e&&!t){this.selectNothing();for(var o=0;o<e.length;o++){var i=e[o],n=this.keyToValue(i);this.allUniqueValues.indexOf(n)>=0&&this.selectValue(n)}}else this.selectEverything()},e}();t.SetFilterModel=s},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),n=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=o(2),a=function(e){function t(o,i){var n=e.call(this,t.TEMPLATE)||this;return n.selected=!0,n.value=o,n.column=i,n}return i(t,e),t.prototype.init=function(){var e=this;this.eCheckedIcon=s._.createIconNoSpan("checkboxChecked",this.gridOptionsWrapper,this.column),this.eUncheckedIcon=s._.createIconNoSpan("checkboxUnchecked",this.gridOptionsWrapper,this.column),this.eCheckbox=this.queryForHtmlElement(".ag-filter-checkbox"),this.eClickableArea=this.getHtmlElement(),this.updateCheckboxIcon(),this.render();var o=function(){e.selected=!e.selected,e.updateCheckboxIcon();var o={type:t.EVENT_SELECTED};return e.dispatchEvent(o)};this.addDestroyableEventListener(this.eClickableArea,"click",o)},t.prototype.isSelected=function(){return this.selected},t.prototype.setSelected=function(e){this.selected=e,this.updateCheckboxIcon()},t.prototype.updateCheckboxIcon=function(){if(this.eCheckbox.children)for(var e=0;e<this.eCheckbox.children.length;e++)this.eCheckbox.removeChild(this.eCheckbox.children.item(e));this.isSelected()?this.eCheckbox.appendChild(this.eCheckedIcon):this.eCheckbox.appendChild(this.eUncheckedIcon)},t.prototype.render=function(){var e=this.queryForHtmlElement(".ag-filter-value"),t=this.valueFormatterService.formatValue(this.column,null,null,this.value),o=this.cellRendererService.useFilterCellRenderer(this.column.getColDef(),e,{value:this.value,valueFormatted:t});o&&o.destroy&&this.addDestroyFunc(o.destroy.bind(o))},t.EVENT_SELECTED="selected",t.TEMPLATE='<label class="ag-set-filter-item"><div class="ag-filter-checkbox"></div><span class="ag-filter-value"></span></label>',n([s.Autowired("gridOptionsWrapper"),r("design:type",s.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([s.Autowired("cellRendererService"),r("design:type",s.CellRendererService)],t.prototype,"cellRendererService",void 0),n([s.Autowired("valueFormatterService"),r("design:type",s.ValueFormatterService)],t.prototype,"valueFormatterService",void 0),n([s.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],t.prototype,"init",null),t}(s.Component);t.SetFilterListItem=a},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),n=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=o(2),a=function(e){function t(){var t=e.call(this,null)||this;return t.rowsInBodyContainer={},t.rowHeight=20,t}return i(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.eListContainer=this.queryForHtmlElement(".ag-virtual-list-container"),this.addScrollListener(),"ag-material-next"==this.environment.getTheme()&&(this.rowHeight=32)},t.prototype.ensureIndexVisible=function(e){var t=this.model.getRowCount();if("number"!=typeof e||e<0||e>=t)return void console.warn("invalid row index for ensureIndexVisible: "+e);var o=e*this.rowHeight,i=o+this.rowHeight,n=this.getHtmlElement().scrollTop,r=this.getHtmlElement().offsetHeight,s=n+r,a=n>o,l=s<i;if(a)this.getHtmlElement().scrollTop=o;else if(l){var p=i-r;this.getHtmlElement().scrollTop=p}},t.prototype.setComponentCreator=function(e){this.componentCreator=e},t.prototype.getRowHeight=function(){return this.rowHeight},t.prototype.getScrollTop=function(){return this.getHtmlElement().scrollTop},t.prototype.setRowHeight=function(e){this.rowHeight=e,this.refresh()},t.prototype.refresh=function(){s.Utils.missing(this.model)||(this.eListContainer.style.height=this.model.getRowCount()*this.rowHeight+"px",this.clearVirtualRows(),this.drawVirtualRows())},t.prototype.clearVirtualRows=function(){var e=Object.keys(this.rowsInBodyContainer);this.removeVirtualRows(e)},t.prototype.drawVirtualRows=function(){var e=this.getHtmlElement().scrollTop,t=e+this.getHtmlElement().offsetHeight,o=Math.floor(e/this.rowHeight),i=Math.floor(t/this.rowHeight);this.ensureRowsRendered(o,i)},t.prototype.ensureRowsRendered=function(e,t){for(var o=Object.keys(this.rowsInBodyContainer),i=e;i<=t;i++)if(o.indexOf(i.toString())>=0)o.splice(o.indexOf(i.toString()),1);else if(this.model.getRowCount()>i){var n=this.model.getRow(i);this.insertRow(n,i)}this.removeVirtualRows(o)},t.prototype.removeVirtualRows=function(e){var t=this;e.forEach(function(e){var o=t.rowsInBodyContainer[e];t.eListContainer.removeChild(o.eDiv),o.rowComponent.destroy&&o.rowComponent.destroy(),delete t.rowsInBodyContainer[e]})},t.prototype.insertRow=function(e,t){var o=document.createElement("div");s.Utils.addCssClass(o,"ag-virtual-list-item"),o.style.top=this.rowHeight*t+"px";var i=this.componentCreator(e);o.appendChild(i.getHtmlElement()),this.eListContainer.appendChild(o),this.rowsInBodyContainer[t]={rowComponent:i,eDiv:o}},t.prototype.addScrollListener=function(){var e=this;this.addGuiEventListener("scroll",function(){e.drawVirtualRows()})},t.prototype.setModel=function(e){this.model=e},t.TEMPLATE='<div class="ag-virtual-list-viewport"><div class="ag-virtual-list-container"></div></div>',n([s.Autowired("environment"),r("design:type",s.Environment)],t.prototype,"environment",void 0),n([s.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],t.prototype,"init",null),t}(s.Component);t.VirtualList=a},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),n=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=o(2),a=o(157),l=o(155),p=function(e){function t(){var o=e.call(this,t.TEMPLATE)||this;return o.selectionConfirmed=!1,o}return i(t,e),t.prototype.init=function(e){if(this.params=e,this.selectedValue=e.value,this.originalSelectedValue=e.value,this.cellRenderer=e.cellRenderer,this.focusAfterAttached=e.cellStartedEdit,this.virtualList=new l.VirtualList,this.context.wireBean(this.virtualList),this.virtualList.setComponentCreator(this.createRowComponent.bind(this)),this.getHtmlElement().querySelector(".ag-rich-select-list").appendChild(this.virtualList.getHtmlElement()),s.Utils.exists(this.params.cellHeight)&&this.virtualList.setRowHeight(this.params.cellHeight),this.renderSelectedValue(),s.Utils.missing(e.values))return void console.log("ag-Grid: richSelectCellEditor requires values for it to work");var t=e.values;this.virtualList.setModel({getRowCount:function(){return t.length},getRow:function(e){return t[e]}}),this.addGuiEventListener("keydown",this.onKeyDown.bind(this)),this.addDestroyableEventListener(this.virtualList.getHtmlElement(),"click",this.onClick.bind(this)),this.addDestroyableEventListener(this.virtualList.getHtmlElement(),"mousemove",this.onMouseMove.bind(this))},t.prototype.onKeyDown=function(e){var t=e.which||e.keyCode;switch(t){case s.Constants.KEY_ENTER:this.onEnterKeyDown();break;case s.Constants.KEY_DOWN:case s.Constants.KEY_UP:this.onNavigationKeyPressed(e,t)}},t.prototype.onEnterKeyDown=function(){this.selectionConfirmed=!0,this.params.stopEditing()},t.prototype.onNavigationKeyPressed=function(e,t){e.stopPropagation();var o=this.params.values.indexOf(this.selectedValue),i=t===s.Constants.KEY_UP?o-1:o+1;if(i>=0&&i<this.params.values.length){var n=this.params.values[i];this.setSelectedValue(n)}},t.prototype.renderSelectedValue=function(){var e=this.getHtmlElement().querySelector(".ag-rich-select-value"),t=this.params.formatValue(this.selectedValue);if(this.cellRenderer){var o=this.cellRendererService.useCellRenderer(this.params.column.getColDef(),e,{value:this.selectedValue,valueFormatted:t});o&&o.destroy&&this.addDestroyFunc(function(){return o.destroy()})}else s.Utils.exists(this.selectedValue)?e.innerHTML=t:e.innerHTML=""},t.prototype.setSelectedValue=function(e){if(this.selectedValue!==e){var t=this.params.values.indexOf(e);t>=0&&(this.selectedValue=e,this.virtualList.ensureIndexVisible(t),this.virtualList.refresh())}},t.prototype.createRowComponent=function(e){var t=this.params.formatValue(e),o=new a.RichSelectRow(this.params.column.getColDef());return this.context.wireBean(o),o.setState(e,t,e===this.selectedValue),o},t.prototype.onMouseMove=function(e){var t=this.virtualList.getHtmlElement().getBoundingClientRect(),o=this.virtualList.getScrollTop(),i=e.clientY-t.top+o,n=Math.floor(i/this.virtualList.getRowHeight()),r=this.params.values[n];null!==r&&void 0!==r&&this.setSelectedValue(r)},t.prototype.onClick=function(){this.selectionConfirmed=!0,this.params.stopEditing()},t.prototype.afterGuiAttached=function(){var e=this.params.values.indexOf(this.selectedValue);this.virtualList.refresh(),e>=0&&this.virtualList.ensureIndexVisible(e),this.virtualList.refresh(),this.focusAfterAttached&&this.getHtmlElement().focus()},t.prototype.getValue=function(){return this.selectionConfirmed?this.selectedValue:this.originalSelectedValue},t.prototype.isPopup=function(){return!0},t.TEMPLATE='<div class="ag-rich-select" tabindex="0"><div class="ag-rich-select-value"></div><div class="ag-rich-select-list"></div></div>',n([s.Autowired("context"),r("design:type",s.Context)],t.prototype,"context",void 0),n([s.Autowired("cellRendererService"),r("design:type",s.CellRendererService)],t.prototype,"cellRendererService",void 0),t}(s.Component);t.RichSelectCellEditor=p},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),n=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=o(2),a=function(e){function t(t){var o=e.call(this,'<div class="ag-rich-select-row"></div>')||this;return o.columnDef=t,o}return i(t,e),t.prototype.setState=function(e,t,o){this.populateWithRenderer(e,t)||this.populateWithoutRenderer(e,t),s.Utils.addOrRemoveCssClass(this.getHtmlElement(),"ag-rich-select-row-selected",o)},t.prototype.populateWithoutRenderer=function(e,t){var o=null!==t&&void 0!==t,i=o?t:e;s.Utils.exists(i)&&""!==i?this.getHtmlElement().textContent=i.toString():this.getHtmlElement().innerHTML="&nbsp;"},t.prototype.populateWithRenderer=function(e,t){var o=this.cellRendererService.useCellRenderer(this.columnDef,this.getHtmlElement(),{value:e,valueFormatted:t});return o&&o.destroy&&this.addDestroyFunc(o.destroy.bind(o)),o},n([s.Autowired("cellRendererService"),r("design:type",s.CellRendererService)],t.prototype,"cellRendererService",void 0),t}(s.Component);t.RichSelectRow=a},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(2),s=o(2),a=o(159),l=function(){function e(){}return t=e,e.prototype.validateLicense=function(){var e=t.getGridReleaseDate(),o=!1,i=!1,n=null;if(!s.Utils.missingOrEmpty(t.licenseKey)&&t.licenseKey.length>32){var r=t.extractLicenseComponents(t.licenseKey),a=r.md5,l=r.license;a===this.md5.md5(l)&&(n=t.extractExpiry(l),isNaN(n.getTime())||(o=!0,i=e<n))}if(o){if(!i){var p=t.formatDate(n),u=t.formatDate(e);t.outputMessage("********************* License not compatible with installed version of ag-Grid Enterprise. *********************","Your license for ag-Grid Enterprise expired on "+p+" but the version installed was released on "+u+". Please contact accounts@ag-grid.com to renew your license")}}else t.outputMessage("********************************************* Invalid License **************************************************","* Your license for ag-Grid Enterprise is not valid - please contact accounts@ag-grid.com to obtain a valid license. *")},e.extractExpiry=function(e){var o=e.substring(e.lastIndexOf("_")+1,e.length);return new Date(parseInt(t.decode(o)))},e.extractLicenseComponents=function(e){var t=e.length-32;return{md5:e.substring(t),license:e.substring(0,t)}},e.prototype.getLicenseDetails=function(e){var o,i=t.extractLicenseComponents(e),n=i.md5,r=i.license,s=n===this.md5.md5(r);return s&&(o=t.extractExpiry(r),s=!isNaN(o.getTime())),{licenseKey:e,valid:s,expiry:s?t.formatDate(o):null}},e.outputMessage=function(e,t){console.error("****************************************************************************************************************"),console.error("*************************************** ag-Grid Enterprise License *********************************************"),console.error(e),console.error(t),console.error("****************************************************************************************************************"),console.error("****************************************************************************************************************")},e.formatDate=function(e){var t=["January","February","March","April","May","June","July","August","September","October","November","December"],o=e.getDate(),i=e.getMonth(),n=e.getFullYear();return o+" "+t[i]+" "+n},e.getGridReleaseDate=function(){return new Date(parseInt(t.decode(t.RELEASE_INFORMATION)))},e.decode=function(e){for(var o,i,n,r,s,a,l,p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",u="",c=0,d=e.replace(/[^A-Za-z0-9+\/=]/g,"");c<d.length;)r=p.indexOf(d.charAt(c++)),s=p.indexOf(d.charAt(c++)),a=p.indexOf(d.charAt(c++)),l=p.indexOf(d.charAt(c++)),o=r<<2|s>>4,i=(15&s)<<4|a>>2,n=(3&a)<<6|l,u+=String.fromCharCode(o),64!=a&&(u+=String.fromCharCode(i)),64!=l&&(u+=String.fromCharCode(n));return u=t.utf8_decode(u)},e.utf8_decode=function(e){e=e.replace(/rn/g,"n");for(var t="",o=0;o<e.length;o++){var i=e.charCodeAt(o);i<128?t+=String.fromCharCode(i):i>127&&i<2048?(t+=String.fromCharCode(i>>6|192),t+=String.fromCharCode(63&i|128)):(t+=String.fromCharCode(i>>12|224),t+=String.fromCharCode(i>>6&63|128),t+=String.fromCharCode(63&i|128))}return t},e.setLicenseKey=function(e){t.licenseKey=e},e.RELEASE_INFORMATION="MTUwNTgxNDAzMTE4OQ==",i([r.Autowired("md5"),n("design:type",a.MD5)],e.prototype,"md5",void 0),e=t=i([r.Bean("licenseManager")],e);var t}();t.LicenseManager=l},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(2),s=function(){function e(){this.ieCompatibility=!1}return e.prototype.init=function(){this.ieCompatibility="5d41402abc4b2a76b9719d911017c592"!=this.md5("hello")},e.prototype.md5cycle=function(e,t){var o=e[0],i=e[1],n=e[2],r=e[3];o=this.ff(o,i,n,r,t[0],7,-680876936),r=this.ff(r,o,i,n,t[1],12,-389564586),n=this.ff(n,r,o,i,t[2],17,606105819),i=this.ff(i,n,r,o,t[3],22,-1044525330),o=this.ff(o,i,n,r,t[4],7,-176418897),r=this.ff(r,o,i,n,t[5],12,1200080426),n=this.ff(n,r,o,i,t[6],17,-1473231341),i=this.ff(i,n,r,o,t[7],22,-45705983),o=this.ff(o,i,n,r,t[8],7,1770035416),r=this.ff(r,o,i,n,t[9],12,-1958414417),n=this.ff(n,r,o,i,t[10],17,-42063),i=this.ff(i,n,r,o,t[11],22,-1990404162),o=this.ff(o,i,n,r,t[12],7,1804603682),r=this.ff(r,o,i,n,t[13],12,-40341101),n=this.ff(n,r,o,i,t[14],17,-1502002290),i=this.ff(i,n,r,o,t[15],22,1236535329),o=this.gg(o,i,n,r,t[1],5,-165796510),r=this.gg(r,o,i,n,t[6],9,-1069501632),n=this.gg(n,r,o,i,t[11],14,643717713),i=this.gg(i,n,r,o,t[0],20,-373897302),o=this.gg(o,i,n,r,t[5],5,-701558691),r=this.gg(r,o,i,n,t[10],9,38016083),n=this.gg(n,r,o,i,t[15],14,-660478335),i=this.gg(i,n,r,o,t[4],20,-405537848),o=this.gg(o,i,n,r,t[9],5,568446438),r=this.gg(r,o,i,n,t[14],9,-1019803690),n=this.gg(n,r,o,i,t[3],14,-187363961),i=this.gg(i,n,r,o,t[8],20,1163531501),o=this.gg(o,i,n,r,t[13],5,-1444681467),r=this.gg(r,o,i,n,t[2],9,-51403784),n=this.gg(n,r,o,i,t[7],14,1735328473),i=this.gg(i,n,r,o,t[12],20,-1926607734),o=this.hh(o,i,n,r,t[5],4,-378558),r=this.hh(r,o,i,n,t[8],11,-2022574463),n=this.hh(n,r,o,i,t[11],16,1839030562),i=this.hh(i,n,r,o,t[14],23,-35309556),o=this.hh(o,i,n,r,t[1],4,-1530992060),r=this.hh(r,o,i,n,t[4],11,1272893353),n=this.hh(n,r,o,i,t[7],16,-155497632),i=this.hh(i,n,r,o,t[10],23,-1094730640),o=this.hh(o,i,n,r,t[13],4,681279174),r=this.hh(r,o,i,n,t[0],11,-358537222),n=this.hh(n,r,o,i,t[3],16,-722521979),i=this.hh(i,n,r,o,t[6],23,76029189),o=this.hh(o,i,n,r,t[9],4,-640364487),r=this.hh(r,o,i,n,t[12],11,-421815835),n=this.hh(n,r,o,i,t[15],16,530742520),i=this.hh(i,n,r,o,t[2],23,-995338651),o=this.ii(o,i,n,r,t[0],6,-198630844),r=this.ii(r,o,i,n,t[7],10,1126891415),n=this.ii(n,r,o,i,t[14],15,-1416354905),i=this.ii(i,n,r,o,t[5],21,-57434055),o=this.ii(o,i,n,r,t[12],6,1700485571),r=this.ii(r,o,i,n,t[3],10,-1894986606),n=this.ii(n,r,o,i,t[10],15,-1051523),i=this.ii(i,n,r,o,t[1],21,-2054922799),o=this.ii(o,i,n,r,t[8],6,1873313359),r=this.ii(r,o,i,n,t[15],10,-30611744),n=this.ii(n,r,o,i,t[6],15,-1560198380),i=this.ii(i,n,r,o,t[13],21,1309151649),o=this.ii(o,i,n,r,t[4],6,-145523070),r=this.ii(r,o,i,n,t[11],10,-1120210379),n=this.ii(n,r,o,i,t[2],15,718787259),i=this.ii(i,n,r,o,t[9],21,-343485551),e[0]=this.add32(o,e[0]),e[1]=this.add32(i,e[1]),e[2]=this.add32(n,e[2]),e[3]=this.add32(r,e[3])},e.prototype.cmn=function(e,t,o,i,n,r){return t=this.add32(this.add32(t,e),this.add32(i,r)),this.add32(t<<n|t>>>32-n,o)},e.prototype.ff=function(e,t,o,i,n,r,s){return this.cmn(t&o|~t&i,e,t,n,r,s)},e.prototype.gg=function(e,t,o,i,n,r,s){return this.cmn(t&i|o&~i,e,t,n,r,s)},e.prototype.hh=function(e,t,o,i,n,r,s){return this.cmn(t^o^i,e,t,n,r,s)},e.prototype.ii=function(e,t,o,i,n,r,s){return this.cmn(o^(t|~i),e,t,n,r,s)},e.prototype.md51=function(e){var t,o=e.length,i=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)this.md5cycle(i,this.md5blk(e.substring(t-64,t)));e=e.substring(t-64);var n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<e.length;t++)n[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(n[t>>2]|=128<<(t%4<<3),t>55)for(this.md5cycle(i,n),t=0;t<16;t++)n[t]=0;return n[14]=8*o,this.md5cycle(i,n),i},e.prototype.md5blk=function(e){var t,o=[];for(t=0;t<64;t+=4)o[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return o},e.prototype.rhex=function(e){for(var t="0123456789abcdef".split(""),o="",i=0;i<4;i++)o+=t[e>>8*i+4&15]+t[e>>8*i&15];return o},e.prototype.hex=function(e){for(var t=0;t<e.length;t++)e[t]=this.rhex(e[t]);return e.join("")},e.prototype.md5=function(e){return this.hex(this.md51(e))},e.prototype.add32=function(e,t){return this.ieCompatibility?this.add32Compat(e,t):this.add32Std(e,t)},e.prototype.add32Std=function(e,t){return e+t&4294967295},e.prototype.add32Compat=function(e,t){var o=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(o>>16)<<16|65535&o},i([r.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),e=i([r.Bean("md5")],e)}();t.MD5=s},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),n=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=o(2),a=o(161),l=o(145),p=function(e){function t(){var t=e.call(this,o.TEMPLATE)||this;return t.aggregationsComponent=new s.Component('<div class="ag-status-bar-aggregations"></div>'),t.infoLabel=new s.Component('<div class="ag-status-bar-info-label"></div>'),t}return i(t,e),o=t,t.prototype.init=function(){this.setVisible(!1),this.createStatusItems(),this.eventService.addEventListener(s.Events.EVENT_RANGE_SELECTION_CHANGED,this.onRangeSelectionChanged.bind(this)),this.eventService.addEventListener(s.Events.EVENT_MODEL_UPDATED,this.onRangeSelectionChanged.bind(this))},t.prototype.createStatusItems=function(){var e=this,t=this.gridOptionsWrapper.getLocaleTextFunc();this.statusItemSum=new a.StatusItem(t("sum","Sum")),this.statusItemCount=new a.StatusItem(t("count","Count")),this.statusItemMin=new a.StatusItem(t("min","Min")),this.statusItemMax=new a.StatusItem(t("max","Max")),this.statusItemAvg=new a.StatusItem(t("average","Average")),this.forEachStatusItem(function(t){e.context.wireBean(t),e.aggregationsComponent.appendChild(t),t.setVisible(!1)}),this.appendChild(this.infoLabel),this.appendChild(this.aggregationsComponent)},t.prototype.forEachStatusItem=function(e){[this.statusItemAvg,this.statusItemCount,this.statusItemMin,this.statusItemMax,this.statusItemSum].forEach(e)},t.prototype.onRangeSelectionChanged=function(){var e=this,t=this.rangeController.getCellRanges(),o=0,i=0,n=0,r=null,a=null,l={};s._.missingOrEmpty(t)||t.forEach(function(t){for(var p=t.start.getGridRow(),u=t.end.getGridRow(),c=p.before(u),d=c?p:u,h=c?u:p;;){if(s._.missing(d)||h.before(d))break;t.columns.forEach(function(t){var p=d.getGridCell(t).createId();if(!l[p]){l[p]=!0;var u=e.getRowNode(d);if(!s._.missing(u)){var c=e.valueService.getValue(t,u);s._.missing(c)||""===c||(c.value&&(c=c.value),"string"==typeof c&&(c=Number(c)),"number"!=typeof c||isNaN(c)||(o+=c,(null===a||c>a)&&(a=c),(null===r||c<r)&&(r=c),n++),i++)}}}),d=e.cellNavigationService.getRowBelow(d)}});var p=this.gridOptionsWrapper.isAlwaysShowStatusBar()||i>1,u=n>1;p&&this.statusItemCount.setValue(i),this.statusItemCount.setVisible(p),u&&(this.statusItemSum.setValue(o),this.statusItemMin.setValue(r),this.statusItemMax.setValue(a),this.statusItemAvg.setValue(o/n)),this.statusItemSum.setVisible(u),this.statusItemMin.setVisible(u),this.statusItemMax.setVisible(u),this.statusItemAvg.setVisible(u),this.isVisible()!==p&&(this.setVisible(p),this.gridCore.doLayout())},t.prototype.getRowNode=function(e){switch(e.floating){case s.Constants.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case s.Constants.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},t.TEMPLATE='<div class="ag-status-bar"></div>',n([s.Autowired("eventService"),r("design:type",s.EventService)],t.prototype,"eventService",void 0),n([s.Autowired("rangeController"),r("design:type",l.RangeController)],t.prototype,"rangeController",void 0),n([s.Autowired("valueService"),r("design:type",s.ValueService)],t.prototype,"valueService",void 0),n([s.Autowired("cellNavigationService"),r("design:type",s.CellNavigationService)],t.prototype,"cellNavigationService",void 0),n([s.Autowired("pinnedRowModel"),r("design:type",s.PinnedRowModel)],t.prototype,"pinnedRowModel",void 0),n([s.Autowired("rowModel"),r("design:type",Object)],t.prototype,"rowModel",void 0),n([s.Autowired("context"),r("design:type",s.Context)],t.prototype,"context",void 0),n([s.Autowired("gridOptionsWrapper"),r("design:type",s.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([s.Autowired("gridCore"),r("design:type",s.GridCore)],t.prototype,"gridCore",void 0),n([s.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],t.prototype,"init",null),t=o=n([s.Bean("statusBar"),r("design:paramtypes",[])],t);var o}(s.Component);t.StatusBar=p},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),n=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=o(2),a=function(e){function t(o){var i=e.call(this,t.TEMPLATE)||this;return i.queryForHtmlElement("#_label").innerHTML=o,i}return i(t,e),t.prototype.init=function(){this.lbValue=this.queryForHtmlElement("#_value")},t.prototype.setValue=function(e){this.lbValue.innerHTML=s.Utils.formatNumberTwoDecimalPlacesAndCommas(e)},t.TEMPLATE='<span class="ag-status-bar-item">  <span id="_label"></span>  <span id="_value"></span></span>',n([s.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],t.prototype,"init",null),t}(s.Component);t.StatusItem=a},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),n=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=o(2),a=o(144),l=o(142),p=o(141),u=o(143),c=function(){function e(){}return e.prototype.init=function(){},e.prototype.getMenuItems=function(e,t,o){var i;if(s.Utils.exists(e)){var n=!this.gridOptionsWrapper.isSuppressExcelExport()||!this.gridOptionsWrapper.isSuppressCsvExport();i=["copy","copyWithHeaders","paste","separator","toolPanel"],n&&i.push("export")}else i=["toolPanel"];if(this.gridOptionsWrapper.getContextMenuItemsFunc()){return this.gridOptionsWrapper.getContextMenuItemsFunc()({node:e,column:t,value:o,defaultItems:i,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()})}return i},e.prototype.showMenu=function(e,t,o,i){var n=this.getMenuItems(e,t,o);if(!s.Utils.missingOrEmpty(n)){var r=new d(n);this.context.wireBean(r);var a=r.getHtmlElement(),l=this.popupService.addAsModalPopup(a,!0,function(){return r.destroy()});this.popupService.positionPopupUnderMouseEvent({column:t,rowNode:e,type:"contextMenu",mouseEvent:i,ePopup:a}),r.afterGuiAttached({eComponent:a,hidePopupCallback:l})}},n([s.Autowired("context"),r("design:type",s.Context)],e.prototype,"context",void 0),n([s.Autowired("popupService"),r("design:type",s.PopupService)],e.prototype,"popupService",void 0),n([s.Autowired("gridOptionsWrapper"),r("design:type",s.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),n([s.Autowired("rowModel"),r("design:type",Object)],e.prototype,"rowModel",void 0),n([s.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],e.prototype,"init",null),e=n([s.Bean("contextMenuFactory")],e)}();t.ContextMenuFactory=c;var d=function(e){function t(t){var o=e.call(this,'<div class="ag-menu"></div>')||this;return o.menuItems=t,o}return i(t,e),t.prototype.addMenuItems=function(){var e=new p.MenuList;this.context.wireBean(e);var t=this.menuItemMapper.mapWithStockItems(this.menuItems,null);e.addMenuItems(t),this.appendChild(e),e.addEventListener(l.MenuItemComponent.EVENT_ITEM_SELECTED,this.destroy.bind(this))},t.prototype.afterGuiAttached=function(e){this.addDestroyFunc(e.hidePopupCallback),this.addDestroyableEventListener(this.eventService,"bodyScroll",this.destroy.bind(this))},n([s.Autowired("context"),r("design:type",s.Context)],t.prototype,"context",void 0),n([s.Autowired("clipboardService"),r("design:type",a.ClipboardService)],t.prototype,"clipboardService",void 0),n([s.Autowired("gridOptionsWrapper"),r("design:type",s.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([s.Autowired("gridApi"),r("design:type",s.GridApi)],t.prototype,"gridApi",void 0),n([s.Autowired("eventService"),r("design:type",s.EventService)],t.prototype,"eventService",void 0),n([s.Autowired("menuItemMapper"),r("design:type",u.MenuItemMapper)],t.prototype,"menuItemMapper",void 0),n([s.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],t.prototype,"addMenuItems",null),t}(s.Component)},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(2),s=function(){function e(){this.firstRow=-1,this.lastRow=-1,this.rowCount=-1,this.rowNodesByIndex={}}return e.prototype.init=function(){this.rowHeight=this.gridOptionsWrapper.getRowHeightAsNumber(),this.eventService.addEventListener(r.Events.EVENT_VIEWPORT_CHANGED,this.onViewportChanged.bind(this)),this.gridOptionsWrapper.isRowModelViewport()&&this.gridOptionsWrapper.getViewportDatasource()&&this.setViewportDatasource(this.gridOptionsWrapper.getViewportDatasource())},e.prototype.destroy=function(){this.destroyCurrentDatasource()},e.prototype.isLastRowFound=function(){return!0},e.prototype.destroyCurrentDatasource=function(){this.viewportDatasource&&this.viewportDatasource.destroy&&this.viewportDatasource.destroy()},e.prototype.calculateFirstRow=function(e){var t=this.gridOptionsWrapper.getViewportRowModelBufferSize(),o=this.gridOptionsWrapper.getViewportRowModelPageSize(),i=e-t;return i<0?0:Math.floor(i/o)*o},e.prototype.calculateLastRow=function(e){var t=this.gridOptionsWrapper.getViewportRowModelBufferSize(),o=this.gridOptionsWrapper.getViewportRowModelPageSize(),i=e+t,n=Math.ceil(i/o)*o;return n<=this.rowCount?n:this.rowCount},e.prototype.onViewportChanged=function(e){var t=this.calculateFirstRow(e.firstRow),o=this.calculateLastRow(e.lastRow);this.firstRow===t&&this.lastRow===o||(this.firstRow=t,this.lastRow=o,this.purgeRowsNotInViewport(),this.viewportDatasource&&this.viewportDatasource.setViewportRange(this.firstRow,this.lastRow))},e.prototype.purgeRowsNotInViewport=function(){var e=this;Object.keys(this.rowNodesByIndex).forEach(function(t){var o=parseInt(t);(o<e.firstRow||o>e.lastRow)&&delete e.rowNodesByIndex[o]})},e.prototype.setViewportDatasource=function(e){this.destroyCurrentDatasource(),this.viewportDatasource=e,this.rowCount=0,e.init?e.init({setRowCount:this.setRowCount.bind(this),setRowData:this.setRowData.bind(this),getRow:this.getRow.bind(this)}):console.warn("ag-Grid: viewport is missing init method.")},e.prototype.getType=function(){return r.Constants.ROW_MODEL_TYPE_VIEWPORT},e.prototype.getRow=function(e){return this.rowNodesByIndex[e]||(this.rowNodesByIndex[e]=this.createBlankRowNode(e)),this.rowNodesByIndex[e]},e.prototype.getPageFirstRow=function(){return 0},e.prototype.getPageLastRow=function(){return this.rowCount-1},e.prototype.getRowCount=function(){return this.rowCount},e.prototype.getRowIndexAtPixel=function(e){return 0!==this.rowHeight?Math.floor(e/this.rowHeight):0},e.prototype.getRowBounds=function(e){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*e}},e.prototype.getCurrentPageHeight=function(){return this.rowCount*this.rowHeight},e.prototype.isEmpty=function(){return this.rowCount>0},e.prototype.isRowsToRender=function(){return this.rowCount>0},e.prototype.getNodesInRangeForSelection=function(e,t){var o=r.Utils.missing(e)?0:e.rowIndex,i=t.rowIndex,n=o<this.firstRow||o>this.lastRow,s=i<this.firstRow||i>this.lastRow;if(n||s)return[];for(var a=[],l=o;l<=i;l++)a.push(this.rowNodesByIndex[l]);return a},e.prototype.forEachNode=function(e){var t=this,o=0;Object.keys(this.rowNodesByIndex).forEach(function(i){var n=parseInt(i),r=t.rowNodesByIndex[n];e(r,o),o++})},e.prototype.setRowData=function(e){var t=this;r.Utils.iterateObject(e,function(e,o){var i=parseInt(e);if(i>=t.firstRow&&i<=t.lastRow){var n=t.rowNodesByIndex[i];r.Utils.missing(n)&&(n=t.createBlankRowNode(i),t.rowNodesByIndex[i]=n),n.setDataAndId(o,i.toString())}})},e.prototype.createBlankRowNode=function(e){var t=new r.RowNode;return this.context.wireBean(t),t.setRowHeight(this.rowHeight),t.setRowTop(this.rowHeight*e),t.setRowIndex(e),t},e.prototype.setRowCount=function(e){if(e!==this.rowCount){this.rowCount=e;var t={type:r.Events.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,newData:!1,newPage:!1,keepRenderedRows:!1,animate:!1};this.eventService.dispatchEvent(t)}},e.prototype.isRowPresent=function(e){return console.log("not yet supported"),!1},i([r.Autowired("gridOptionsWrapper"),n("design:type",r.GridOptionsWrapper)],e.prototype,"gridOptionsWrapper",void 0),i([r.Autowired("eventService"),n("design:type",r.EventService)],e.prototype,"eventService",void 0),i([r.Autowired("selectionController"),n("design:type",r.SelectionController)],e.prototype,"selectionController",void 0),i([r.Autowired("context"),n("design:type",r.Context)],e.prototype,"context",void 0),i([r.Autowired("gridApi"),n("design:type",r.GridApi)],e.prototype,"gridApi",void 0),i([r.Autowired("columnApi"),n("design:type",r.ColumnApi)],e.prototype,"columnApi",void 0),i([r.PostConstruct,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"init",null),i([r.PreDestroy,n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],e.prototype,"destroy",null),e=i([r.Bean("rowModel")],e)}();t.ViewportRowModel=s},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),n=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=o(2),a=o(165),l=function(e){function t(t){return e.call(this,t,!1,"pivot")||this}return i(t,e),t.prototype.passBeansUp=function(){e.prototype.setBeans.call(this,{gridOptionsWrapper:this.gridOptionsWrapper,eventService:this.eventService,context:this.context,loggerFactory:this.loggerFactory,dragAndDropService:this.dragAndDropService});var t=this.gridOptionsWrapper.getLocaleTextFunc(),o=t("pivotColumnsEmptyMessage","Drag here to set column labels"),i=t("pivots","Column Labels");e.prototype.init.call(this,{dragAndDropIcon:s.DragAndDropService.ICON_GROUP,icon:s.Utils.createIconNoSpan("pivotPanel",this.gridOptionsWrapper,null),emptyMessage:o,title:i}),this.addDestroyableEventListener(this.eventService,s.Events.EVENT_COLUMN_EVERYTHING_CHANGED,this.refresh.bind(this)),this.addDestroyableEventListener(this.eventService,s.Events.EVENT_COLUMN_PIVOT_CHANGED,this.refresh.bind(this)),this.addDestroyableEventListener(this.eventService,s.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.checkVisibility.bind(this)),this.refresh()},t.prototype.refresh=function(){this.checkVisibility(),this.refreshGui()},t.prototype.checkVisibility=function(){var e=this.columnController.isPivotMode();if(this.isHorizontal())switch(this.gridOptionsWrapper.getPivotPanelShow()){case"always":this.setVisible(e);break;case"onlyWhenPivoting":var t=this.columnController.isPivotActive();this.setVisible(e&&t);break;default:this.setVisible(!1)}else this.setVisible(e)},t.prototype.isColumnDroppable=function(e){if(this.gridOptionsWrapper.isFunctionsReadOnly())return!1;if(!e.isPrimary())return!1;var t=e.isAllowPivot(),o=!e.isPivotActive();return t&&o},t.prototype.updateColumns=function(e){if(this.gridOptionsWrapper.isFunctionsPassive()){var t={type:s.Events.EVENT_COLUMN_PIVOT_CHANGE_REQUEST,columns:e,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}else this.columnController.setPivotColumns(e)},t.prototype.getIconName=function(){return this.isPotentialDndColumns()?s.DragAndDropService.ICON_PIVOT:s.DragAndDropService.ICON_NOT_ALLOWED},t.prototype.getExistingColumns=function(){return this.columnController.getPivotColumns()},n([s.Autowired("columnController"),r("design:type",s.ColumnController)],t.prototype,"columnController",void 0),n([s.Autowired("eventService"),r("design:type",s.EventService)],t.prototype,"eventService",void 0),n([s.Autowired("gridOptionsWrapper"),r("design:type",s.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([s.Autowired("context"),r("design:type",s.Context)],t.prototype,"context",void 0),n([s.Autowired("loggerFactory"),r("design:type",s.LoggerFactory)],t.prototype,"loggerFactory",void 0),n([s.Autowired("dragAndDropService"),r("design:type",s.DragAndDropService)],t.prototype,"dragAndDropService",void 0),n([s.Autowired("columnApi"),r("design:type",s.ColumnApi)],t.prototype,"columnApi",void 0),n([s.Autowired("gridApi"),r("design:type",s.GridApi)],t.prototype,"gridApi",void 0),n([s.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],t.prototype,"passBeansUp",null),t=n([s.Bean("pivotColumnsPanel"),r("design:paramtypes",[Boolean])],t)}(a.AbstractColumnDropPanel);t.PivotColumnsPanel=l},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var n=o(2),r=o(166),s=function(e){function t(o,i,n){var r=e.call(this,'<div class="ag-column-drop ag-font-style ag-column-drop-'+(o?"horizontal":"vertical")+" ag-column-drop-"+n+'"></div>')||this;return r.state=t.STATE_NOT_DRAGGING,r.guiDestroyFunctions=[],r.childColumnComponents=[],r.horizontal=o,r.valueColumn=i,r}return i(t,e),t.prototype.isHorizontal=function(){return this.horizontal},t.prototype.setBeans=function(e){this.beans=e},t.prototype.destroy=function(){this.destroyGui(),e.prototype.destroy.call(this)},t.prototype.destroyGui=function(){this.guiDestroyFunctions.forEach(function(e){return e()}),this.guiDestroyFunctions.length=0,this.childColumnComponents.length=0,n.Utils.removeAllChildren(this.getHtmlElement())},t.prototype.init=function(e){this.params=e,this.logger=this.beans.loggerFactory.create("AbstractColumnDropPanel"),this.beans.eventService.addEventListener(n.Events.EVENT_COLUMN_EVERYTHING_CHANGED,this.refreshGui.bind(this)),this.addDestroyableEventListener(this.beans.gridOptionsWrapper,"functionsReadOnly",this.refreshGui.bind(this)),this.setupDropTarget(),this.refreshGui()},t.prototype.setupDropTarget=function(){this.dropTarget={getContainer:this.getGui.bind(this),getIconName:this.getIconName.bind(this),onDragging:this.onDragging.bind(this),onDragEnter:this.onDragEnter.bind(this),onDragLeave:this.onDragLeave.bind(this),onDragStop:this.onDragStop.bind(this)},this.beans.dragAndDropService.addDropTarget(this.dropTarget)},t.prototype.checkInsertIndex=function(e){var t;if((t=this.horizontal?this.getNewHorizontalInsertIndex(e):this.getNewVerticalInsertIndex(e))<0)return!1;var o=t!==this.insertIndex;return o&&(this.insertIndex=t),o},t.prototype.getNewHorizontalInsertIndex=function(e){if(n.Utils.missing(e.hDirection))return-1;var t=0,o=e.event,i=this.beans.gridOptionsWrapper.isEnableRtl(),r=e.hDirection===n.HDirection.Left,s=o.clientX;return this.childColumnComponents.forEach(function(e){var o=e.getHtmlElement().getBoundingClientRect(),n=r?o.right:o.left;(i?s<=n:s>=n)&&t++}),t},t.prototype.getNewVerticalInsertIndex=function(e){if(n.Utils.missing(e.vDirection))return-1;var t=0,o=e.event;return this.childColumnComponents.forEach(function(i){var r=i.getHtmlElement().getBoundingClientRect();if(e.vDirection===n.VDirection.Down){var s=o.clientY>=r.top;s&&t++}else{var s=o.clientY>=r.bottom;s&&t++}}),t},t.prototype.checkDragStartedBySelf=function(e){this.state===t.STATE_NOT_DRAGGING&&(this.state=t.STATE_REARRANGE_COLUMNS,this.potentialDndColumns=e.dragSource.dragItemCallback().columns,this.refreshGui(),this.checkInsertIndex(e),this.refreshGui())},t.prototype.onDragging=function(e){this.checkDragStartedBySelf(e),this.checkInsertIndex(e)&&this.refreshGui()},t.prototype.onDragEnter=function(e){var o=e.dragSource.dragItemCallback().columns;this.state=t.STATE_NEW_COLUMNS_IN;var i=n.Utils.filter(o,this.isColumnDroppable.bind(this));i.length>0&&(this.potentialDndColumns=i,this.checkInsertIndex(e),this.refreshGui())},t.prototype.isPotentialDndColumns=function(){return n.Utils.existsAndNotEmpty(this.potentialDndColumns)},t.prototype.onDragLeave=function(e){if(this.state===t.STATE_REARRANGE_COLUMNS){var o=e.dragSource.dragItemCallback().columns;this.removeColumns(o)}this.potentialDndColumns&&(this.potentialDndColumns=null,this.refreshGui()),this.state=t.STATE_NOT_DRAGGING},t.prototype.onDragStop=function(){if(this.potentialDndColumns){var e=void 0;this.state===t.STATE_NEW_COLUMNS_IN?(this.addColumns(this.potentialDndColumns),e=!0):e=this.rearrangeColumns(this.potentialDndColumns),this.potentialDndColumns=null,this.beans.gridOptionsWrapper.isFunctionsPassive()?e||this.refreshGui():this.refreshGui()}this.state=t.STATE_NOT_DRAGGING},t.prototype.removeColumns=function(e){var t=this.getExistingColumns().slice();e.forEach(function(e){return n.Utils.removeFromArray(t,e)}),this.updateColumns(t)},t.prototype.addColumns=function(e){var t=this.getExistingColumns().slice();n.Utils.insertArrayIntoArray(t,e,this.insertIndex),this.updateColumns(t)},t.prototype.rearrangeColumns=function(e){var t=this.getNonGhostColumns().slice();return n.Utils.insertArrayIntoArray(t,e,this.insertIndex),!n.Utils.shallowCompare(t,this.getExistingColumns())&&(this.updateColumns(t),!0)},t.prototype.refreshGui=function(){this.destroyGui(),this.addIconAndTitleToGui(),this.addEmptyMessageToGui(),this.addColumnsToGui()},t.prototype.getNonGhostColumns=function(){var e=this,t=this.getExistingColumns();return n.Utils.exists(this.potentialDndColumns)?n.Utils.filter(t,function(t){return e.potentialDndColumns.indexOf(t)<0}):t},t.prototype.addColumnsToGui=function(){var e=this,t=this.getNonGhostColumns(),o=[],i=n.Utils.exists(this.potentialDndColumns);t.forEach(function(t,n){if(!(i&&n>=e.insertIndex)){var r=e.createColumnComponent(t,!1);o.push(r)}}),this.potentialDndColumns&&(this.potentialDndColumns.forEach(function(t){var i=e.createColumnComponent(t,!0);o.push(i)}),t.forEach(function(t,i){if(!(i<e.insertIndex)){var n=e.createColumnComponent(t,!1);o.push(n)}})),o.forEach(function(t,o){0!==o&&e.addArrowToGui(),e.getHtmlElement().appendChild(t.getHtmlElement())})},t.prototype.createColumnComponent=function(e,t){var o=new r.ColumnComponent(e,this.dropTarget,t,this.valueColumn);return o.addEventListener(r.ColumnComponent.EVENT_COLUMN_REMOVE,this.removeColumns.bind(this,[e])),this.beans.context.wireBean(o),this.guiDestroyFunctions.push(function(){return o.destroy()}),t||this.childColumnComponents.push(o),o},t.prototype.addIconAndTitleToGui=function(){var e=this.horizontal&&this.isExistingColumnsEmpty(),t=this.params.icon;if(n.Utils.addCssClass(t,"ag-column-drop-icon"),n.Utils.addOrRemoveCssClass(t,"ag-faded",e),this.getHtmlElement().appendChild(t),!this.horizontal){var o=document.createElement("span");o.innerHTML=this.params.title,n.Utils.addCssClass(o,"ag-column-drop-title"),n.Utils.addOrRemoveCssClass(o,"ag-faded",e),this.getHtmlElement().appendChild(o)}},t.prototype.isExistingColumnsEmpty=function(){return 0===this.getExistingColumns().length},t.prototype.addEmptyMessageToGui=function(){if(this.isExistingColumnsEmpty()&&!this.potentialDndColumns){var e=document.createElement("span");e.innerHTML=this.params.emptyMessage,n.Utils.addCssClass(e,"ag-column-drop-empty-message"),this.getHtmlElement().appendChild(e)}},t.prototype.addArrowToGui=function(){if(this.horizontal){var e=this.beans.gridOptionsWrapper.isEnableRtl(),o=e?t.CHAR_LEFT_ARROW:t.CHAR_RIGHT_ARROW,i=e?"ag-left-arrow":"ag-right-arrow",n=document.createElement("span");n.className=i,n.innerHTML=o,this.getHtmlElement().appendChild(n)}},t.STATE_NOT_DRAGGING="notDragging",t.STATE_NEW_COLUMNS_IN="newColumnsIn",t.STATE_REARRANGE_COLUMNS="rearrangeColumns",t.CHAR_LEFT_ARROW="&#8592;",t.CHAR_RIGHT_ARROW="&#8594;",t}(n.Component);t.AbstractColumnDropPanel=s},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),n=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=o(2),a=o(155),l=o(146),p=function(e){function t(t,o,i,n){var r=e.call(this)||this;return r.popupShowing=!1,r.valueColumn=n,r.column=t,r.dragSourceDropTarget=o,r.ghost=i,r}return i(t,e),t.prototype.init=function(){this.setTemplate(t.TEMPLATE),this.displayName=this.columnController.getDisplayNameForColumn(this.column,"columnDrop"),this.setupComponents(),this.ghost||this.gridOptionsWrapper.isFunctionsReadOnly()||this.addDragSource()},t.prototype.addDragSource=function(){var e=this,t={type:s.DragSourceType.ToolPanel,eElement:this.eText,dragItemCallback:function(){return e.createDragItem()},dragItemName:this.displayName,dragSourceDropTarget:this.dragSourceDropTarget};this.dragAndDropService.addDragSource(t,!0),this.addDestroyFunc(function(){return e.dragAndDropService.removeDragSource(t)})},t.prototype.createDragItem=function(){var e={};return e[this.column.getId()]=this.column.isVisible(),{columns:[this.column],visibleState:e}},t.prototype.setupComponents=function(){this.setTextValue(),this.setupRemove(),this.ghost&&s.Utils.addCssClass(this.getHtmlElement(),"ag-column-drop-cell-ghost"),this.valueColumn&&!this.gridOptionsWrapper.isFunctionsReadOnly()&&this.addGuiEventListener("click",this.onShowAggFuncSelection.bind(this))},t.prototype.setupRemove=function(){var e=this;s.Utils.setVisible(this.btRemove,!this.gridOptionsWrapper.isFunctionsReadOnly()),this.addDestroyableEventListener(this.btRemove,"click",function(o){var i={type:t.EVENT_COLUMN_REMOVE};e.dispatchEvent(i),o.stopPropagation()});var o=new s.TouchListener(this.btRemove);this.addDestroyableEventListener(o,s.TouchListener.EVENT_TAP,function(o){var i={type:t.EVENT_COLUMN_REMOVE};e.dispatchEvent(i)}),this.addDestroyFunc(o.destroy.bind(o))},t.prototype.setTextValue=function(){var e;if(this.valueColumn){var t=this.column.getAggFunc(),o="string"==typeof t?t:"agg";e=this.gridOptionsWrapper.getLocaleTextFunc()(o,o)+"("+this.displayName+")"}else e=this.displayName;this.eText.innerHTML=e},t.prototype.onShowAggFuncSelection=function(){var e=this;if(!this.popupShowing){this.popupShowing=!0;var t=new a.VirtualList,o=this.aggFuncService.getFuncNames(this.column);t.setModel({getRow:function(e){return o[e]},getRowCount:function(){return o.length}}),this.context.wireBean(t);var i=s.Utils.loadTemplate('<div class="ag-select-agg-func-popup"></div>');i.style.top="0px",i.style.left="0px",i.appendChild(t.getHtmlElement()),i.style.height="100px",i.style.width=this.getHtmlElement().clientWidth+"px";var n=function(){t.destroy(),e.popupShowing=!1},r=this.popupService.addAsModalPopup(i,!0,n);t.setComponentCreator(this.createAggSelect.bind(this,r)),this.popupService.positionPopupUnderComponent({type:"aggFuncSelect",eventSource:this.getHtmlElement(),ePopup:i,keepWithinBounds:!0,column:this.column}),t.refresh()}},t.prototype.createAggSelect=function(e,t){var o=this,i=function(){if(e(),o.gridOptionsWrapper.isFunctionsPassive()){var i={type:s.Events.EVENT_COLUMN_AGG_FUNC_CHANGE_REQUEST,columns:[o.column],aggFunc:t,api:o.gridApi,columnApi:o.columnApi};o.eventService.dispatchEvent(i)}else o.columnController.setColumnAggFunc(o.column,t)},n=this.gridOptionsWrapper.getLocaleTextFunc(),r=t.toString(),a=n(r,r);return new u(i,a)},t.EVENT_COLUMN_REMOVE="columnRemove",t.TEMPLATE='<span class="ag-column-drop-cell">\n          <span class="ag-column-drop-cell-text"></span>\n          <span class="ag-column-drop-cell-button">&#10006;</span>\n        </span>',n([s.Autowired("dragAndDropService"),r("design:type",s.DragAndDropService)],t.prototype,"dragAndDropService",void 0),n([s.Autowired("columnController"),r("design:type",s.ColumnController)],t.prototype,"columnController",void 0),n([s.Autowired("gridPanel"),r("design:type",s.GridPanel)],t.prototype,"gridPanel",void 0),n([s.Autowired("context"),r("design:type",s.Context)],t.prototype,"context",void 0),n([s.Autowired("popupService"),r("design:type",s.PopupService)],t.prototype,"popupService",void 0),n([s.Autowired("aggFuncService"),r("design:type",l.AggFuncService)],t.prototype,"aggFuncService",void 0),n([s.Autowired("gridOptionsWrapper"),r("design:type",s.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([s.Autowired("eventService"),r("design:type",s.EventService)],t.prototype,"eventService",void 0),n([s.Autowired("columnApi"),r("design:type",s.ColumnApi)],t.prototype,"columnApi",void 0),n([s.Autowired("gridApi"),r("design:type",s.GridApi)],t.prototype,"gridApi",void 0),n([s.QuerySelector(".ag-column-drop-cell-text"),r("design:type",HTMLElement)],t.prototype,"eText",void 0),n([s.QuerySelector(".ag-column-drop-cell-button"),r("design:type",HTMLElement)],t.prototype,"btRemove",void 0),n([s.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],t.prototype,"init",null),t}(s.Component);t.ColumnComponent=p;var u=function(e){function t(t,o){var i=e.call(this,'<div class="ag-select-agg-func-item"/>')||this;return i.getHtmlElement().innerText=o,i.value=o,i.addGuiEventListener("click",t),i}return i(t,e),t}(s.Component)},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),n=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=o(2),a=o(138),l=o(168),p=o(164),u=o(169),c=o(170),d=function(e){function t(){var t=e.call(this,o.TEMPLATE)||this;return t.initialised=!1,t}return i(t,e),o=t,t.prototype.setVisible=function(t){e.prototype.setVisible.call(this,t),t&&!this.initialised&&this.init()},t.prototype.init=function(){this.gridOptionsWrapper.isToolPanelSuppressPivotMode()||this.addComponent(new u.PivotModePanel),this.addComponent(new a.ColumnSelectPanel(!0)),this.gridOptionsWrapper.isToolPanelSuppressRowGroups()||this.addComponent(new l.RowGroupColumnsPanel(!1)),this.gridOptionsWrapper.isToolPanelSuppressValues()||this.addComponent(new c.ValuesColumnPanel(!1)),this.gridOptionsWrapper.isToolPanelSuppressPivots()||this.addComponent(new p.PivotColumnsPanel(!1)),this.initialised=!0},t.prototype.addComponent=function(e){this.context.wireBean(e),this.getHtmlElement().appendChild(e.getHtmlElement()),this.addDestroyFunc(function(){e.destroy()})},t.TEMPLATE='<div class="ag-tool-panel"></div>',n([s.Autowired("context"),r("design:type",s.Context)],t.prototype,"context",void 0),n([s.Autowired("gridOptionsWrapper"),r("design:type",s.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),t=o=n([s.Bean("toolPanel"),r("design:paramtypes",[])],t);var o}(s.Component);t.ToolPanelComp=d},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),n=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=o(2),a=o(165),l=function(e){function t(t){return e.call(this,t,!1,"row-group")||this}return i(t,e),t.prototype.passBeansUp=function(){e.prototype.setBeans.call(this,{gridOptionsWrapper:this.gridOptionsWrapper,eventService:this.eventService,context:this.context,loggerFactory:this.loggerFactory,dragAndDropService:this.dragAndDropService});var t=this.gridOptionsWrapper.getLocaleTextFunc(),o=t("rowGroupColumnsEmptyMessage","Drag here to set row groups"),i=t("groups","Row Groups");e.prototype.init.call(this,{dragAndDropIcon:s.DragAndDropService.ICON_GROUP,icon:s.Utils.createIconNoSpan("rowGroupPanel",this.gridOptionsWrapper,null),emptyMessage:o,title:i}),this.addDestroyableEventListener(this.eventService,s.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,this.refreshGui.bind(this))},t.prototype.isColumnDroppable=function(e){if(this.gridOptionsWrapper.isFunctionsReadOnly())return!1;if(!e.isPrimary())return!1;var t=e.isAllowRowGroup(),o=!e.isRowGroupActive();return t&&o},t.prototype.updateColumns=function(e){if(this.gridOptionsWrapper.isFunctionsPassive()){var t={type:s.Events.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST,columns:e,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}else this.columnController.setRowGroupColumns(e)},t.prototype.getIconName=function(){return this.isPotentialDndColumns()?s.DragAndDropService.ICON_GROUP:s.DragAndDropService.ICON_NOT_ALLOWED},t.prototype.getExistingColumns=function(){return this.columnController.getRowGroupColumns()},n([s.Autowired("columnController"),r("design:type",s.ColumnController)],t.prototype,"columnController",void 0),n([s.Autowired("eventService"),r("design:type",s.EventService)],t.prototype,"eventService",void 0),n([s.Autowired("gridOptionsWrapper"),r("design:type",s.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([s.Autowired("context"),r("design:type",s.Context)],t.prototype,"context",void 0),n([s.Autowired("loggerFactory"),r("design:type",s.LoggerFactory)],t.prototype,"loggerFactory",void 0),n([s.Autowired("dragAndDropService"),r("design:type",s.DragAndDropService)],t.prototype,"dragAndDropService",void 0),n([s.Autowired("columnApi"),r("design:type",s.ColumnApi)],t.prototype,"columnApi",void 0),n([s.Autowired("gridApi"),r("design:type",s.GridApi)],t.prototype,"gridApi",void 0),n([s.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],t.prototype,"passBeansUp",null),t}(a.AbstractColumnDropPanel);t.RowGroupColumnsPanel=l},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),n=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=o(2),a=function(e){function t(){return e.call(this)||this}return i(t,e),t.prototype.createTemplate=function(){return'<div class="ag-pivot-mode">\n                <ag-checkbox class="ag-pivot-mode-select" label="'+this.gridOptionsWrapper.getLocaleTextFunc()("pivotMode","Pivot Mode")+'"></ag-checkbox>\n            </div>'},t.prototype.init=function(){this.setTemplate(this.createTemplate()),this.instantiate(this.context),this.cbPivotMode.setSelected(this.columnController.isPivotMode()),this.addDestroyableEventListener(this.cbPivotMode,s.AgCheckbox.EVENT_CHANGED,this.onBtPivotMode.bind(this)),this.addDestroyableEventListener(this.eventService,s.Events.EVENT_COLUMN_EVERYTHING_CHANGED,this.onPivotModeChanged.bind(this)),this.addDestroyableEventListener(this.eventService,s.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onPivotModeChanged.bind(this))},t.prototype.onBtPivotMode=function(){var e=this.cbPivotMode.isSelected();e!==this.columnController.isPivotMode()&&(this.columnController.setPivotMode(e),this.gridOptionsWrapper.getApi().refreshHeader())},t.prototype.onPivotModeChanged=function(){var e=this.columnController.isPivotMode();this.cbPivotMode.setSelected(e)},n([s.Autowired("columnController"),r("design:type",s.ColumnController)],t.prototype,"columnController",void 0),n([s.Autowired("eventService"),r("design:type",s.EventService)],t.prototype,"eventService",void 0),n([s.Autowired("context"),r("design:type",s.Context)],t.prototype,"context",void 0),n([s.Autowired("gridOptionsWrapper"),r("design:type",s.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([s.QuerySelector(".ag-pivot-mode-select"),r("design:type",s.AgCheckbox)],t.prototype,"cbPivotMode",void 0),n([s.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],t.prototype,"init",null),t}(s.Component);t.PivotModePanel=a},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),n=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=o(2),a=o(165),l=function(e){function t(t){return e.call(this,t,!0,"values")||this}return i(t,e),t.prototype.passBeansUp=function(){e.prototype.setBeans.call(this,{gridOptionsWrapper:this.gridOptionsWrapper,eventService:this.eventService,context:this.context,loggerFactory:this.loggerFactory,dragAndDropService:this.dragAndDropService});var t=this.gridOptionsWrapper.getLocaleTextFunc(),o=t("valueColumnsEmptyMessage","Drag here to aggregate"),i=t("values","Values");e.prototype.init.call(this,{dragAndDropIcon:s.DragAndDropService.ICON_AGGREGATE,icon:s.Utils.createIconNoSpan("valuePanel",this.gridOptionsWrapper,null),emptyMessage:o,title:i}),this.addDestroyableEventListener(this.eventService,s.Events.EVENT_COLUMN_VALUE_CHANGED,this.refreshGui.bind(this))},t.prototype.getIconName=function(){return this.isPotentialDndColumns()?s.DragAndDropService.ICON_AGGREGATE:s.DragAndDropService.ICON_NOT_ALLOWED},t.prototype.isColumnDroppable=function(e){if(this.gridOptionsWrapper.isFunctionsReadOnly())return!1;if(!e.isPrimary())return!1;var t=e.isAllowValue(),o=!e.isValueActive();return t&&o},t.prototype.updateColumns=function(e){if(this.gridOptionsWrapper.isFunctionsPassive()){var t={type:s.Events.EVENT_COLUMN_VALUE_CHANGE_REQUEST,columns:e,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}else this.columnController.setValueColumns(e)},t.prototype.getExistingColumns=function(){return this.columnController.getValueColumns()},n([s.Autowired("columnController"),r("design:type",s.ColumnController)],t.prototype,"columnController",void 0),n([s.Autowired("eventService"),r("design:type",s.EventService)],t.prototype,"eventService",void 0),n([s.Autowired("gridOptionsWrapper"),r("design:type",s.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([s.Autowired("context"),r("design:type",s.Context)],t.prototype,"context",void 0),n([s.Autowired("loggerFactory"),r("design:type",s.LoggerFactory)],t.prototype,"loggerFactory",void 0),n([s.Autowired("dragAndDropService"),r("design:type",s.DragAndDropService)],t.prototype,"dragAndDropService",void 0),n([s.Autowired("columnApi"),r("design:type",s.ColumnApi)],t.prototype,"columnApi",void 0),n([s.Autowired("gridApi"),r("design:type",s.GridApi)],t.prototype,"gridApi",void 0),n([s.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],t.prototype,"passBeansUp",null),t}(a.AbstractColumnDropPanel);t.ValuesColumnPanel=l},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(2),s=o(168),a=function(){function e(){}return e.prototype.create=function(){var e=new s.RowGroupColumnsPanel(!0);return this.context.wireBean(e),e},i([r.Autowired("context"),n("design:type",r.Context)],e.prototype,"context",void 0),e=i([r.Bean("rowGroupCompFactory")],e)}();t.RowGroupCompFactory=a},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(2),s=o(164),a=function(){function e(){}return e.prototype.create=function(){var e=new s.PivotColumnsPanel(!0);return this.context.wireBean(e),e},i([r.Autowired("context"),n("design:type",r.Context)],e.prototype,"context",void 0),e=i([r.Bean("pivotCompFactory")],e)}();t.PivotCompFactory=a},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),n=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var s=o(2),a=o(174),l=function(e){function t(t,o,i,n,r,a,l,p,u){var c=e.call(this,t,o,i,n,r,function(e){return s.Utils.escape(e)})||this;return c.excelXmlFactory=l,c.styleLinker=u,c.mixedStyles={},c.mixedStyleCounter=0,c.rows=[],c.stylesByIds={},p?(p.forEach(function(e){c.stylesByIds[e.id]=e}),c.excelStyles=p.slice()):c.excelStyles=[],c.sheetName=a,c}return i(t,e),t.prototype.addCustomHeader=function(e){this.customHeader=e},t.prototype.addCustomFooter=function(e){this.customFooter=e},t.prototype.prepare=function(e){this.cols=s.Utils.map(e,function(e){return e.getColDef().cellStyle,{width:e.getActualWidth()}})},t.prototype.onNewHeaderGroupingRow=function(){var e=[],t=this;return this.rows.push({cells:e}),{onColumn:function(o,i,n){var r=t.styleLinker(s.RowType.HEADER_GROUPING,1,i,"grouping-"+o,null,null);e.push(t.createMergedCell(r.length>0?r[0]:null,"String",o,n))}}},t.prototype.onNewHeaderRow=function(){return this.onNewRow(this.onNewHeaderColumn)},t.prototype.onNewBodyRow=function(){return this.onNewRow(this.onNewBodyColumn)},t.prototype.onNewRow=function(e){var t=[];return this.rows.push({cells:t}),{onColumn:e.bind(this,this.rows.length,t)()}},t.prototype.onNewHeaderColumn=function(e,t){var o=this,i=this;return function(n,r,a){var l=o.extractHeaderValue(n),p=i.styleLinker(s.RowType.HEADER,e,r,l,n,null);t.push(o.createCell(p.length>0?p[0]:null,"String",l))}},t.prototype.parse=function(){function e(e,t,o){var i=[];return e&&e.forEach(function(e){return i.push({cells:e})}),t.forEach(function(e){return i.push(e)}),o&&o.forEach(function(e){return i.push({cells:e})}),i}var t=[{name:this.sheetName,table:{columns:this.cols,rows:e(this.customHeader,this.rows,this.customFooter)}}];return this.excelXmlFactory.createExcelXml(this.excelStyles,t)},t.prototype.onNewBodyColumn=function(e,t){var o=this,i=this;return function(n,r,a){var l=o.extractRowCellValue(n,r,s.Constants.EXPORT_TYPE_EXCEL,a),p=i.styleLinker(s.RowType.BODY,e,r,l,n,a),u=null;if(p&&1==p.length)u=p[0];else if(p&&p.length>1){var c=p.join("-");o.mixedStyles[c]||o.addNewMixedStyle(p),u=o.mixedStyles[c].excelID}var d=s.Utils.isNumeric(l)?"Number":"String";t.push(i.createCell(u,d,l))}},t.prototype.addNewMixedStyle=function(e){var t=this;this.mixedStyleCounter+=1;var o="mixedStyle"+this.mixedStyleCounter,i={};e.forEach(function(e){t.excelStyles.forEach(function(t){t.id===e&&s.Utils.mergeDeep(i,t)})}),i.id=o,i.name=o;var n=e.join("-");this.mixedStyles[n]={excelID:o,key:n,result:i},this.excelStyles.push(i),this.stylesByIds[o]=i},t.prototype.styleExists=function(e){return null!=e&&this.stylesByIds[e]},t.prototype.createCell=function(e,t,o){function i(){if(r&&n.dataType)switch(n.dataType){case"string":return"String";case"number":return"Number"}return t}var n=this.stylesByIds[e],r=null!=n;return{styleId:r?e:null,data:{type:i(),value:o}}},t.prototype.createMergedCell=function(e,t,o,i){return{styleId:this.styleExists(e)?e:null,data:{type:t,value:o},mergeAcross:i}},t}(s.BaseGridSerializingSession);t.ExcelGridSerializingSession=l;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.exportDataAsExcel=function(e){return this.export(e)},t.prototype.getDataAsExcelXml=function(e){return this.getData(e)},t.prototype.getMimeType=function(){return"application/vnd.ms-excel"},t.prototype.getDefaultFileName=function(){return"export.xls"},t.prototype.getDefaultFileExtension=function(){return"xls"},t.prototype.createSerializingSession=function(e){return new l(this.columnController,this.valueService,this.gridOptionsWrapper,e?e.processCellCallback:null,e?e.processHeaderCallback:null,e&&null!=e.sheetName&&""!=e.sheetName?e.sheetName:"ag-grid",this.excelXmlFactory,this.gridOptions.excelStyles,this.styleLinker.bind(this))},t.prototype.styleLinker=function(e,t,o,i,n,r){if(e===s.RowType.HEADER||e===s.RowType.HEADER_GROUPING)return["header"];if(!this.gridOptions.excelStyles||0===this.gridOptions.excelStyles.length)return null;var a=this.gridOptions.excelStyles.map(function(e){return e.id}),l=[];return this.stylingService.processAllCellClasses(n.getColDef(),{value:i,data:r.data,node:r,colDef:n.getColDef(),rowIndex:t,api:this.gridOptionsWrapper.getApi(),context:this.gridOptionsWrapper.getContext()},function(e){a.indexOf(e)>-1&&l.push(e)}),l.sort(function(e,t){return a.indexOf(e)<a.indexOf(t)?-1:1})},t.prototype.isExportSuppressed=function(){return this.gridOptionsWrapper.isSuppressExcelExport()},n([s.Autowired("excelXmlFactory"),r("design:type",a.ExcelXmlFactory)],t.prototype,"excelXmlFactory",void 0),n([s.Autowired("columnController"),r("design:type",s.ColumnController)],t.prototype,"columnController",void 0),n([s.Autowired("valueService"),r("design:type",s.ValueService)],t.prototype,"valueService",void 0),n([s.Autowired("gridOptions"),r("design:type",Object)],t.prototype,"gridOptions",void 0),n([s.Autowired("stylingService"),r("design:type",s.StylingService)],t.prototype,"stylingService",void 0),t=n([s.Bean("excelCreator")],t)}(s.BaseCreator);t.ExcelCreator=p},function(e,t,o){"use strict";var i=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var r=o(2),s=o(2),a=o(2),l="\r\n",p=function(){function e(){}return e.prototype.createExcelXml=function(e,t){var o=this.documentProperties(),i=this.excelWorkbook();return this.excelXmlHeader()+this.xmlFactory.createXml(this.workbook(o,i,e,t),function(e){return e?"1":"0"})},e.prototype.workbook=function(e,t,o,i){var n=this,r=[e,t,this.stylesXmlElement(o)];return a.Utils.map(i,function(e){return n.worksheetXmlElement(e)}).forEach(function(e){r.push(e)}),{name:"Workbook",properties:{prefixedAttributes:[{prefix:"xmlns:",map:{o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",html:"http://www.w3.org/TR/REC-html40"}}],rawMap:{xmlns:"urn:schemas-microsoft-com:office:spreadsheet"}},children:r}},e.prototype.excelXmlHeader=function(){var e="?";return"<"+e+'xml version="1.0"'+e+">"+l+"<"+e+'mso-application progid="Excel.Sheet"'+e+">"+l},e.prototype.stylesXmlElement=function(e){var t=this;return{name:"Styles",children:e?a.Utils.map(e,function(e){return t.styleXmlElement(e)}):[]}},e.prototype.styleXmlElement=function(e){var t=[];e.borders&&[e.borders.borderBottom,e.borders.borderLeft,e.borders.borderRight,e.borders.borderTop].forEach(function(e,o){var i=0==o?"Bottom":1==o?"Left":2==o?"Right":"Top";t.push({name:"Border",properties:{prefixedAttributes:[{prefix:"ss:",map:{Position:i,LineStyle:e.lineStyle,Weight:e.weight,Color:e.color}}]}})});var o=[];return e.alignment&&o.push({name:"Alignment",properties:{prefixedAttributes:[{prefix:"ss:",map:{Vertical:e.alignment.vertical,Horizontal:e.alignment.horizontal,Indent:e.alignment.indent,ReadingOrder:e.alignment.readingOrder,Rotate:e.alignment.rotate,ShrinkToFit:e.alignment.shrinkToFit,VerticalText:e.alignment.verticalText,WrapText:e.alignment.wrapText}}]}}),e.borders&&o.push({name:"Borders",children:t}),e.font&&o.push({name:"Font",properties:{prefixedAttributes:[{prefix:"ss:",map:{Bold:e.font.bold,FontName:e.font.fontName,Italic:e.font.italic,Color:e.font.color,Outline:e.font.outline,Shadow:e.font.shadow,Size:e.font.size,StrikeThrough:e.font.strikeThrough,Underline:e.font.underline,VerticalAlign:e.font.verticalAlign}},{prefix:"x:",map:{CharSet:e.font.charSet,Family:e.font.family}}]}}),e.interior&&o.push({name:"Interior",properties:{prefixedAttributes:[{prefix:"ss:",map:{Color:e.interior.color,Pattern:e.interior.pattern,PatternColor:e.interior.patternColor}}]}}),e.protection&&o.push({name:"Protection",properties:{prefixedAttributes:[{prefix:"ss:",map:{Protected:e.protection.protected,HideFormula:e.protection.hideFormula}}]}}),e.numberFormat&&o.push({name:"NumberFormat",properties:{prefixedAttributes:[{prefix:"ss:",map:{Format:e.numberFormat.format}}]}}),{name:"Style",properties:{prefixedAttributes:[{prefix:"ss:",map:{ID:e.id,Name:e.name?e.name:e.id}}]},children:o}},e.prototype.worksheetXmlElement=function(e){var t=this,o=[];return a.Utils.map(e.table.columns,function(e){return t.columnXmlElement(e)}).forEach(function(e){o.push(e)}),a.Utils.map(e.table.rows,function(e){return t.rowXmlElement(e)}).forEach(function(e){o.push(e)}),{name:"Worksheet",children:[{name:"Table",children:o}],properties:{prefixedAttributes:[{prefix:"ss:",map:{Name:e.name}}]}}},e.prototype.columnXmlElement=function(e){return{name:"Column",properties:{prefixedAttributes:[{prefix:"ss:",map:{Width:e.width}}]}}},e.prototype.rowXmlElement=function(e){var t=this;return{name:"Row",children:a.Utils.map(e.cells,function(e){return t.rowCellXmlElement(e)})}},e.prototype.rowCellXmlElement=function(e){var t={};return e.mergeAcross&&(t.MergeAcross=e.mergeAcross),e.styleId&&(t.StyleID=e.styleId),{name:"Cell",properties:{prefixedAttributes:[{prefix:"ss:",map:t}]},children:[{name:"Data",properties:{prefixedAttributes:[{prefix:"ss:",map:{Type:e.data.type}}]},textNode:e.data.value}]}},e.prototype.excelWorkbook=function(){return{name:"ExcelWorkbook",properties:{rawMap:{xmlns:"urn:schemas-microsoft-com:office:excel"}},children:[{name:"WindowHeight",textNode:"8130"},{name:"WindowWidth",textNode:"15135"},{name:"WindowHeight",textNode:"8130"},{name:"WindowTopX",textNode:"120"},{name:"WindowTopY",textNode:"45"},{name:"ProtectStructure",textNode:"False"},{name:"ProtectWindow",textNode:"False"}]}},e.prototype.documentProperties=function(){return{name:"DocumentProperties",properties:{rawMap:{xmlns:"urn:schemas-microsoft-com:office:office"}},children:[{name:"Version",textNode:"12.00"}]}},i([s.Autowired("xmlFactory"),n("design:type",r.XmlFactory)],e.prototype,"xmlFactory",void 0),e=i([s.Bean("excelXmlFactory")],e)}();t.ExcelXmlFactory=p},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),n=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(o,i){t(o,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=o(2),l=o(176),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.postConstruct=function(){this.rowHeight=this.gridOptionsWrapper.getRowHeightAsNumber(),this.addEventListeners();var e=this.gridOptionsWrapper.getEnterpriseDatasource();a._.exists(e)&&this.setDatasource(e)},t.prototype.setBeans=function(e){this.logger=e.create("EnterpriseRowModel")},t.prototype.isLastRowFound=function(){return!(!a._.exists(this.rootNode)||!a._.exists(this.rootNode.childrenCache))&&this.rootNode.childrenCache.isMaxRowFound()},t.prototype.addEventListeners=function(){this.addDestroyableEventListener(this.eventService,a.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onColumnRowGroupChanged.bind(this)),this.addDestroyableEventListener(this.eventService,a.Events.EVENT_ROW_GROUP_OPENED,this.onRowGroupOpened.bind(this)),this.addDestroyableEventListener(this.eventService,a.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onPivotModeChanged.bind(this)),this.addDestroyableEventListener(this.eventService,a.Events.EVENT_COLUMN_VALUE_CHANGED,this.onValueChanged.bind(this)),this.addDestroyableEventListener(this.eventService,a.Events.EVENT_COLUMN_PIVOT_CHANGED,this.onColumnPivotChanged.bind(this)),this.addDestroyableEventListener(this.eventService,a.Events.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addDestroyableEventListener(this.eventService,a.Events.EVENT_SORT_CHANGED,this.onSortChanged.bind(this))},t.prototype.onFilterChanged=function(){this.reset()},t.prototype.onSortChanged=function(){this.reset()},t.prototype.onValueChanged=function(){this.reset()},t.prototype.onColumnRowGroupChanged=function(){this.reset()},t.prototype.onColumnPivotChanged=function(){this.reset()},t.prototype.onPivotModeChanged=function(){this.reset()},t.prototype.onRowGroupOpened=function(e){var t=e.node;t.expanded?a._.missing(t.childrenCache)&&this.createNodeCache(t):this.gridOptionsWrapper.isPurgeClosedRowNodes()&&a._.exists(t.childrenCache)&&(t.childrenCache.destroy(),t.childrenCache=null),this.updateRowIndexesAndBounds();var o={type:a.Events.EVENT_MODEL_UPDATED,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),newPage:!1,newData:!1,animate:!0,keepRenderedRows:!0};this.eventService.dispatchEvent(o)},t.prototype.reset=function(){this.rootNode=new a.RowNode,this.rootNode.group=!0,this.rootNode.level=-1,this.context.wireBean(this.rootNode),this.datasource&&(this.createNewRowNodeBlockLoader(),this.cacheParams=this.createCacheParams(),this.createNodeCache(this.rootNode),this.updateRowIndexesAndBounds());var e={type:a.Events.EVENT_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e);var t={type:a.Events.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,animate:!1,keepRenderedRows:!1,newData:!1,newPage:!1};this.eventService.dispatchEvent(t)},t.prototype.createNewRowNodeBlockLoader=function(){this.destroyRowNodeBlockLoader();var e=this.gridOptionsWrapper.getMaxConcurrentDatasourceRequests();this.rowNodeBlockLoader=new a.RowNodeBlockLoader(e),this.context.wireBean(this.rowNodeBlockLoader)},t.prototype.destroyRowNodeBlockLoader=function(){this.rowNodeBlockLoader&&(this.rowNodeBlockLoader.destroy(),this.rowNodeBlockLoader=null)},t.prototype.setDatasource=function(e){this.datasource=e,this.reset()},t.prototype.toValueObjects=function(e){var t=this;return e.map(function(e){return{id:e.getId(),aggFunc:e.getAggFunc(),displayName:t.columnController.getDisplayNameForColumn(e,"model"),field:e.getColDef().field}})},t.prototype.createCacheParams=function(){var e=this.toValueObjects(this.columnController.getRowGroupColumns()),t=this.toValueObjects(this.columnController.getValueColumns()),o=this.toValueObjects(this.columnController.getPivotColumns()),i=this.gridOptionsWrapper.isDynamicRowHeight(),n=this.gridOptionsWrapper.getMaxBlocksInCache();i&&n>=0&&(console.warn("ag-Grid: Enterprise Row Model does not support Dynamic Row Height and Cache Purging. Either a) remove getRowHeight() callback or b) remove maxBlocksInCache property. Purging has been disabled."),n=void 0);var r={valueCols:t,rowGroupCols:e,pivotCols:o,pivotMode:this.columnController.isPivotMode(),filterModel:this.filterManager.getFilterModel(),sortModel:this.sortController.getSortModel(),rowNodeBlockLoader:this.rowNodeBlockLoader,datasource:this.datasource,lastAccessedSequence:new a.NumberSequence,overflowSize:1,initialRowCount:1,maxConcurrentRequests:this.gridOptionsWrapper.getMaxConcurrentDatasourceRequests(),maxBlocksInCache:n,blockSize:this.gridOptionsWrapper.getCacheBlockSize(),rowHeight:this.rowHeight,dynamicRowHeight:i};return r.maxConcurrentRequests>=1||(r.maxConcurrentRequests=2),r.blockSize>=1||(r.blockSize=100),r.initialRowCount>=1||(r.initialRowCount=0),r.overflowSize>=1||(r.overflowSize=1),r},t.prototype.createNodeCache=function(e){var t=new l.EnterpriseCache(this.cacheParams,e);this.context.wireBean(t),t.addEventListener(a.RowNodeCache.EVENT_CACHE_UPDATED,this.onCacheUpdated.bind(this)),e.childrenCache=t},t.prototype.onCacheUpdated=function(){this.updateRowIndexesAndBounds();var e={type:a.Events.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,animate:!0,keepRenderedRows:!0,newPage:!1,newData:!1};this.eventService.dispatchEvent(e)},t.prototype.updateRowIndexesAndBounds=function(){if(a._.exists(this.rootNode)&&a._.exists(this.rootNode.childrenCache)){var e=this.rootNode.childrenCache;this.resetRowTops(e),this.setDisplayIndexes(e)}},t.prototype.setDisplayIndexes=function(e){var t=new a.NumberSequence,o={value:0};e.setDisplayIndexes(t,o)},t.prototype.resetRowTops=function(e){var t=new a.NumberSequence;e.forEachNodeDeep(function(e){return e.clearRowTop()},t)},t.prototype.getRow=function(e){return a._.exists(this.rootNode)&&a._.exists(this.rootNode.childrenCache)?this.rootNode.childrenCache.getRow(e):null},t.prototype.getPageFirstRow=function(){return 0},t.prototype.getPageLastRow=function(){var e,t=a._.exists(this.rootNode)&&a._.exists(this.rootNode.childrenCache);if(t){e=this.rootNode.childrenCache.getDisplayIndexEnd()-1}else e=0;return e<0&&(e=0),e},t.prototype.getRowCount=function(){return this.getPageLastRow()+1},t.prototype.getRowBounds=function(e){return a._.missing(this.rootNode)||a._.missing(this.rootNode.childrenCache)?{rowTop:0,rowHeight:this.rowHeight}:this.rootNode.childrenCache.getRowBounds(e)},t.prototype.getRowIndexAtPixel=function(e){return 0===e?0:a._.missing(this.rootNode)||a._.missing(this.rootNode.childrenCache)?0:this.rootNode.childrenCache.getRowIndexAtPixel(e)},t.prototype.getCurrentPageHeight=function(){return this.rowHeight*this.getRowCount()},t.prototype.isEmpty=function(){return!1},t.prototype.isRowsToRender=function(){return this.getRowCount()>0},t.prototype.getType=function(){return a.Constants.ROW_MODEL_TYPE_ENTERPRISE},t.prototype.forEachNode=function(e){this.rootNode&&this.rootNode.childrenCache&&this.rootNode.childrenCache.forEachNodeDeep(e,new a.NumberSequence)},t.prototype.purgeCache=function(e){if(void 0===e&&(e=[]),this.rootNode&&this.rootNode.childrenCache){var t=this.rootNode.childrenCache,o=t.getChildCache(e);o&&o.purgeCache()}},t.prototype.getNodesInRangeForSelection=function(e,t){return a._.exists(e)&&e.parent!==t.parent?[]:t.parent.childrenCache.getRowNodesInRange(e,t)},t.prototype.getBlockState=function(){return this.rowNodeBlockLoader?this.rowNodeBlockLoader.getBlockState():null},t.prototype.isRowPresent=function(e){return!1},n([a.Autowired("gridOptionsWrapper"),r("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([a.Autowired("eventService"),r("design:type",a.EventService)],t.prototype,"eventService",void 0),n([a.Autowired("context"),r("design:type",a.Context)],t.prototype,"context",void 0),n([a.Autowired("columnController"),r("design:type",a.ColumnController)],t.prototype,"columnController",void 0),n([a.Autowired("filterManager"),r("design:type",a.FilterManager)],t.prototype,"filterManager",void 0),n([a.Autowired("sortController"),r("design:type",a.SortController)],t.prototype,"sortController",void 0),n([a.Autowired("gridApi"),r("design:type",a.GridApi)],t.prototype,"gridApi",void 0),n([a.Autowired("columnApi"),r("design:type",a.ColumnApi)],t.prototype,"columnApi",void 0),n([a.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],t.prototype,"postConstruct",null),n([s(0,a.Qualifier("loggerFactory")),r("design:type",Function),r("design:paramtypes",[a.LoggerFactory]),r("design:returntype",void 0)],t.prototype,"setBeans",null),t=n([a.Bean("rowModel")],t)}(a.BeanStub);t.EnterpriseRowModel=p},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),n=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(o,i){t(o,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=o(2),l=o(177),p=function(e){function t(t,o){var i=e.call(this,t)||this;return i.displayIndexStart=0,i.displayIndexEnd=0,i.cacheTop=0,i.blockHeights={},i.parentRowNode=o,i}return i(t,e),t.prototype.setBeans=function(e){this.logger=e.create("EnterpriseCache")},t.prototype.init=function(){e.prototype.init.call(this)},t.prototype.getRowBounds=function(e){var t=this;this.logger.log("getRowBounds("+e+")");var o,i,n=!1;if(this.forEachBlockInOrder(function(r){n||(r.isDisplayIndexInBlock(e)?(o=r.getRowBounds(e,t.getVirtualRowCount()),n=!0):r.isBlockBefore(e)&&(i=r))}),!n){var r=void 0,s=void 0;i?(r=i.getBlockTop()+i.getBlockHeight(),s=i.getDisplayIndexEnd()):(r=this.cacheTop,s=this.displayIndexStart);var a=e-s;o={rowHeight:this.cacheParams.rowHeight,rowTop:r+a*this.cacheParams.rowHeight}}return this.logger.log("getRowBounds("+e+"), result = "+o),o},t.prototype.destroyBlock=function(t){e.prototype.destroyBlock.call(this,t)},t.prototype.getRowIndexAtPixel=function(e){var t=this;this.logger.log("getRowIndexAtPixel("+e+")");var o,i,n=!1;if(this.forEachBlockInOrder(function(r){n||(r.isPixelInRange(e)?(o=r.getRowIndexAtPixel(e,t.getVirtualRowCount()),n=!0):r.getBlockTop()>e&&(i=r))}),!n){var r=void 0,s=void 0;i?(r=i.getBlockTop()+i.getBlockHeight(),s=i.getDisplayIndexEnd()):(r=this.cacheTop,s=this.displayIndexStart);var a=e-r,l=a/this.cacheParams.rowHeight|0;o=s+l}var p=this.getDisplayIndexEnd()-1;return o>p&&(o=p),this.logger.log("getRowIndexAtPixel("+e+") result = "+o),o},t.prototype.setDisplayIndexes=function(e,t){var o=this;this.displayIndexStart=e.peek(),this.cacheTop=t.value;var i=-1;this.forEachBlockInOrder(function(n,r){var s=r-i-1,l=s*o.cacheParams.blockSize;l>0&&e.skip(l);for(var p=1;p<=s;p++){var u=r-p;a._.exists(o.blockHeights[u])?t.value+=o.blockHeights[u]:t.value+=o.cacheParams.blockSize*o.cacheParams.rowHeight}i=r,n.setDisplayIndexes(e,o.getVirtualRowCount(),t),o.blockHeights[r]=n.getBlockHeight()});var n=(i+1)*this.cacheParams.blockSize-1,r=this.getVirtualRowCount(),s=r-n-1;s>0&&(e.skip(s),t.value+=s*this.cacheParams.rowHeight),this.displayIndexEnd=e.peek(),this.cacheHeight=t.value-this.cacheTop},t.prototype.getRow=function(e){var t=this;if(!this.isDisplayIndexInCache(e))return null;var o=null,i=null;if(this.forEachBlockInOrder(function(t){t.isDisplayIndexInBlock(e)?o=t:t.isBlockBefore(e)&&(i=t)}),a._.missing(o)){var n,r=void 0,s=void 0;if(i){r=i.getBlockNumber()+1,n=i.getDisplayIndexEnd(),s=i.getBlockHeight()+i.getBlockTop();for(var l=function(){return e>=n&&e<n+t.cacheParams.blockSize};!l();){n+=this.cacheParams.blockSize;var p=this.blockHeights[r];a._.exists(p)?s+=p:s+=this.cacheParams.rowHeight*this.cacheParams.blockSize,r++}}else{var u=e-this.displayIndexStart;r=Math.floor(u/this.cacheParams.blockSize),n=this.displayIndexStart+r*this.cacheParams.blockSize,s=this.cacheTop+r*this.cacheParams.blockSize*this.cacheParams.rowHeight}o=this.createBlock(r,n,{value:s}),this.logger.log("block missing, rowIndex = "+e+", creating #"+r+", displayIndexStart = "+n)}return o.getRow(e)},t.prototype.createBlock=function(e,t,o){var i=new l.EnterpriseBlock(e,this.parentRowNode,this.cacheParams,this);this.context.wireBean(i);var n=new a.NumberSequence(t);return i.setDisplayIndexes(n,this.getVirtualRowCount(),o),this.postCreateBlock(i),i},t.prototype.getDisplayIndexEnd=function(){return this.displayIndexEnd},t.prototype.isDisplayIndexInCache=function(e){return 0!==this.getVirtualRowCount()&&(e>=this.displayIndexStart&&e<this.displayIndexEnd)},t.prototype.getChildCache=function(e){var t=this;if(a._.missingOrEmpty(e))return this;var o=e[0],i=null;if(this.forEachBlockInOrder(function(e){e.forEachNodeShallow(function(e){e.key===o&&(i=e.childrenCache)},new a.NumberSequence,t.getVirtualRowCount())}),i){var n=e.slice(1,e.length);return i.getChildCache(n)}return null},t.prototype.isPixelInRange=function(e){return 0!==this.getVirtualRowCount()&&(e>=this.cacheTop&&e<this.cacheTop+this.cacheHeight)},n([a.Autowired("eventService"),r("design:type",a.EventService)],t.prototype,"eventService",void 0),n([a.Autowired("context"),r("design:type",a.Context)],t.prototype,"context",void 0),n([s(0,a.Qualifier("loggerFactory")),r("design:type",Function),r("design:paramtypes",[a.LoggerFactory]),r("design:returntype",void 0)],t.prototype,"setBeans",null),n([a.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],t.prototype,"init",null),t}(a.RowNodeCache);t.EnterpriseCache=p},function(e,t,o){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])};return function(t,o){function i(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)}}(),n=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s},r=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(o,i){t(o,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=o(2),l=function(e){function t(t,o,i,n){var r=e.call(this,t,i)||this;return r.params=i,r.parentRowNode=o,r.parentCache=n,r.level=o.level+1,r.groupLevel=r.level<i.rowGroupCols.length,r.leafGroup=r.level===i.rowGroupCols.length-1,r}return i(t,e),t.prototype.createNodeIdPrefix=function(){for(var e=[],t=this.parentRowNode;a._.exists(t.key);)e.push(t.key),t=t.parent;e.length>0&&(this.nodeIdPrefix=e.reverse().join("-")+"-")},t.prototype.createIdForIndex=function(e){return a._.exists(this.nodeIdPrefix)?this.nodeIdPrefix+e.toString():e.toString()},t.prototype.getNodeIdPrefix=function(){return this.nodeIdPrefix},t.prototype.getRow=function(t){var o=this.getStartRow(),i=this.parentCache.getVirtualRowCount(),n=this.getEndRow(),r=i<n?i:n,s=r-1;if(a._.missing(s)||a._.missing(o))return console.warn("ag-grid: error: topPointer = "+s+", bottomPointer = "+o),null;for(;;){var l=Math.floor((o+s)/2),p=e.prototype.getRowUsingLocalIndex.call(this,l);if(p.rowIndex===t)return p;var u=p.childrenCache;if(p.rowIndex===t)return p;if(p.expanded&&u&&u.isDisplayIndexInCache(t))return u.getRow(t);p.rowIndex<t?o=l+1:p.rowIndex>t&&(s=l-1)}},t.prototype.setBeans=function(e){this.logger=e.create("EnterpriseBlock")},t.prototype.init=function(){if(this.groupLevel){var t=this.params.rowGroupCols[this.level];this.groupField=t.field,this.rowGroupColumn=this.columnController.getRowGroupColumns()[this.level]}this.createNodeIdPrefix(),e.prototype.init.call(this,{context:this.context,rowRenderer:this.rowRenderer})},t.prototype.setDataAndId=function(e,t,o){if(e.stub=!1,a._.exists(t)){var i=this.createIdForIndex(o);e.setDataAndId(t,i),e.setRowHeight(this.gridOptionsWrapper.getRowHeightForNode(e)),e.group&&(e.key=this.valueService.getValue(this.rowGroupColumn,e))}else e.setDataAndId(void 0,void 0),e.key=null;this.groupLevel&&(this.setGroupDataIntoRowNode(e),this.setChildCountIntoRowNode(e))},t.prototype.setChildCountIntoRowNode=function(e){var t=this.gridOptionsWrapper.getChildCountFunc();t&&(e.allChildrenCount=t(e.data))},t.prototype.setGroupDataIntoRowNode=function(e){var t=this;this.columnController.getGroupDisplayColumns().forEach(function(o){if(o.isRowGroupDisplayed(t.rowGroupColumn.getId())){var i=t.valueService.getValue(t.rowGroupColumn,e);a._.missing(e.groupData)&&(e.groupData={}),e.groupData[o.getColId()]=i}})},t.prototype.loadFromDatasource=function(){var e=this,t=this.createLoadParams();setTimeout(function(){e.params.datasource.getRows(t)},0)},t.prototype.createBlankRowNode=function(t){var o=e.prototype.createBlankRowNode.call(this,t);return o.group=this.groupLevel,o.leafGroup=this.leafGroup,o.level=this.level,o.uiLevel=this.level,o.parent=this.parentRowNode,o.stub=!0,o.group&&(o.expanded=!1,o.field=this.groupField,o.rowGroupColumn=this.rowGroupColumn),o},t.prototype.createGroupKeys=function(e){for(var t=[],o=e;o.level>=0;)t.push(o.key),o=o.parent;return t.reverse(),t},t.prototype.isPixelInRange=function(e){return e>=this.blockTop&&e<this.blockTop+this.blockHeight},t.prototype.getRowBounds=function(e,t){for(var o=this.getStartRow(),i=this.getEndRow(),n=o;n<=i;n++)if(!(n>=t)){var r=this.getRowUsingLocalIndex(n);if(r){if(r.rowIndex===e)return{rowHeight:r.rowHeight,rowTop:r.rowTop};if(r.group&&r.expanded&&a._.exists(r.childrenCache)){var s=r.childrenCache;if(s.isDisplayIndexInCache(e))return s.getRowBounds(e)}}}return console.error("ag-Grid: looking for invalid row index in Enterprise Row Model, index="+e),null},t.prototype.getRowIndexAtPixel=function(e,t){for(var o=this.getStartRow(),i=this.getEndRow(),n=o;n<=i;n++)if(!(n>=t)){var r=this.getRowUsingLocalIndex(n);if(r){if(r.isPixelInRange(e))return r.rowIndex;if(r.group&&r.expanded&&a._.exists(r.childrenCache)){var s=r.childrenCache;if(s.isPixelInRange(e))return s.getRowIndexAtPixel(e)}}}return console.warn("ag-Grid: invalid pixel range for enterprise block "+e),0},t.prototype.setDisplayIndexes=function(e,t,o){this.displayIndexStart=e.peek(),this.blockTop=o.value;for(var i=this.getStartRow(),n=this.getEndRow(),r=i;r<=n;r++)if(!(r>=t)){var s=this.getRowUsingLocalIndex(r);if(s){var l=e.next();if(s.setRowIndex(l),s.setRowTop(o.value),o.value+=s.rowHeight,s.group&&s.expanded&&a._.exists(s.childrenCache)){var p=s.childrenCache;p.setDisplayIndexes(e,o)}}}this.displayIndexEnd=e.peek(),this.blockHeight=o.value-this.blockTop},t.prototype.createLoadParams=function(){var e=this.createGroupKeys(this.parentRowNode),t={startRow:this.getStartRow(),endRow:this.getEndRow(),rowGroupCols:this.params.rowGroupCols,valueCols:this.params.valueCols,pivotCols:this.params.pivotCols,pivotMode:this.params.pivotMode,groupKeys:e,filterModel:this.params.filterModel,sortModel:this.params.sortModel};return{successCallback:this.pageLoaded.bind(this,this.getVersion()),failCallback:this.pageLoadFailed.bind(this),request:t}},t.prototype.isDisplayIndexInBlock=function(e){return e>=this.displayIndexStart&&e<this.displayIndexEnd},t.prototype.isBlockBefore=function(e){return e>=this.displayIndexEnd},t.prototype.getDisplayIndexStart=function(){return this.displayIndexStart},t.prototype.getDisplayIndexEnd=function(){return this.displayIndexEnd},t.prototype.getBlockHeight=function(){return this.blockHeight},t.prototype.getBlockTop=function(){return this.blockTop},n([a.Autowired("context"),r("design:type",a.Context)],t.prototype,"context",void 0),n([a.Autowired("rowRenderer"),r("design:type",a.RowRenderer)],t.prototype,"rowRenderer",void 0),n([a.Autowired("columnController"),r("design:type",a.ColumnController)],t.prototype,"columnController",void 0),n([a.Autowired("valueService"),r("design:type",a.ValueService)],t.prototype,"valueService",void 0),n([a.Autowired("gridOptionsWrapper"),r("design:type",a.GridOptionsWrapper)],t.prototype,"gridOptionsWrapper",void 0),n([s(0,a.Qualifier("loggerFactory")),r("design:type",Function),r("design:paramtypes",[a.LoggerFactory]),r("design:returntype",void 0)],t.prototype,"setBeans",null),n([a.PostConstruct,r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],t.prototype,"init",null),t}(a.RowNodeBlock);t.EnterpriseBlock=l},function(e,t,o){"use strict";function i(e){e.AggFuncService=F.AggFuncService,e.MD5=L.MD5,e.EnterpriseMenu=g.EnterpriseMenu,e.MenuList=v.MenuList,e.MenuItemComponent=y.MenuItemComponent,e.RichSelectCellEditor=R.RichSelectCellEditor,e.RichSelectRow=_.RichSelectRow,e.VirtualList=O.VirtualList,e.AggregationStage=a.AggregationStage,e.GroupStage=l.GroupStage,e.PivotColDefService=T.PivotColDefService,e.PivotStage=D.PivotStage,e.SetFilter=p.SetFilter,e.SetFilterListItem=x.SetFilterListItem,e.SetFilterModel=u.SetFilterModel,e.StatusBar=c.StatusBar,e.StatusItem=d.StatusItem,e.AbstractColumnDropPanel=A.AbstractColumnDropPanel,e.ColumnComponent=G.ColumnComponent,e.PivotColumnsPanel=S.PivotColumnsPanel,e.PivotModePanel=N.PivotModePanel,e.RowGroupColumnsPanel=C.RowGroupColumnsPanel,e.ValuesColumnPanel=I.ValuesColumnPanel,e.ToolPanelComp=b.ToolPanelComp,e.ColumnSelectPanel=n.ColumnSelectPanel,e.RenderedColumn=r.RenderedColumn,e.RenderedGroup=s.RenderedGroup,e.ViewportRowModel=w.ViewportRowModel,e.ClipboardService=h.ClipboardService,e.ContextMenuFactory=E.ContextMenuFactory,e.EnterpriseBoot=f.EnterpriseBoot,e.LicenseManager=P.LicenseManager,e.PivotCompFactory=M.PivotCompFactory,e.ExcelCreator=V.ExcelCreator,e.ExcelXmlFactory=H.ExcelXmlFactory,e.RangeController=m.RangeController,e.RowGroupCompFactory=W.RowGroupCompFactory}Object.defineProperty(t,"__esModule",{value:!0});var n=o(138),r=o(140),s=o(139),a=o(148),l=o(147),p=o(152),u=o(153),c=o(160),d=o(161),h=o(144),f=o(151),g=o(137),y=o(142),v=o(141),m=o(145),C=o(168),E=o(162),w=o(163),R=o(156),_=o(157),O=o(155),A=o(165),S=o(164),b=o(167),P=o(158),D=o(149),T=o(150),N=o(169),F=o(146),L=o(159),x=o(154),G=o(166),I=o(170),M=o(172),W=o(171),V=o(173),H=o(174);t.populateClientExports=i}])});